:root {
  --cream: #fffaf5; --soft: #f8eee7; --peach: #f5c9b9; --pink: #f9dfe0; --sage: #d4dec9;
  --yellow: #f6dfac; --latte: #e9d6c5; --coffee: #57382f; --ink: #30261f; --coral: #ad654a;
  --radius: 23px;
  --serif: 'Fraunces', Georgia, serif; --sans: 'DM Sans', Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.5 var(--sans); background: var(--cream); color: var(--ink); }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0 0 12px; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(32px, 4.5vw, 52px); }
h3 { font-size: 22px; }
em { font-style: italic; font-weight: 500; color: var(--coral); }
.muted { color: #8a7a6e; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.btn { display: inline-block; padding: 14px 26px; border-radius: 40px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--cream); font: 600 16px var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .4; cursor: default; transform: none; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 14px 24px; background: rgba(255, 250, 245, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--latte); }
.logo { font: 600 24px var(--serif); text-decoration: none; letter-spacing: .02em; }
.logo i { color: var(--coral); }
.top nav { display: flex; gap: 22px; margin-right: auto; }
.top nav a { text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--coral); }
@media (max-width: 760px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

section { padding: 72px 24px; scroll-margin-top: 60px; }
.block > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.block > h2, .block > .sub { text-align: center; }
.sub { font-size: 19px; color: #6f5d51; margin-bottom: 36px; }
.soft { background: var(--soft); }
.peach { background: var(--pink); }
.sage { background: var(--sage); }

.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; max-width: 1180px; margin: 0 auto; padding-top: 56px; }
h1 .eyebrow { display: block; margin-bottom: 16px; font-family: var(--sans); line-height: 1.4; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: var(--coral); }
.lead { font-size: 20px; max-width: 34em; margin-bottom: 28px; }
.note { margin-top: 20px; font-size: 15px; }
.hero-art { position: relative; aspect-ratio: 1; }
.blob { position: absolute; border-radius: 50%; }
.b1 { inset: 4% 14% 18% 4%; background: var(--peach); }
.b2 { width: 42%; height: 42%; right: 2%; top: 6%; background: var(--yellow); }
.b3 { width: 36%; height: 36%; right: 12%; bottom: 2%; background: var(--sage); }
.hero-3d { position: absolute; inset: 0; cursor: grab; }
.hero-3d canvas { display: block; width: 100% !important; height: 100% !important; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-art { max-width: 360px; width: 100%; margin: 0 auto; } }

.strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 40px; margin: 0; padding: 18px 24px; list-style: none; background: var(--coffee); color: var(--cream); font-weight: 500; }

/* каталог — компактные карточки товара (6 в ряд, 60 на странице): превью, название, размер и цвета, цена, «Заказать» */
.cat-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 26px; }
.cat-filters a { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 1px solid var(--latte); border-radius: 30px; background: #fff; color: var(--ink); font: 500 15px var(--sans); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.cat-filters a small { font-size: 12px; color: #a08f82; }
.cat-filters a:hover { border-color: var(--ink); }
.cat-filters a.empty:not([aria-pressed="true"]) { color: #a08f82; }
.cat-empty { grid-column: span 4; align-self: center; margin: 0; padding: 0 12px; }
.cat-filters a[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.cat-filters a[aria-pressed="true"] small { color: var(--peach); }
.catalog { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.item { display: flex; flex-direction: column; min-width: 0; text-decoration: none; padding: 0; border: 1px solid var(--latte); border-radius: 18px; background: #fff; overflow: hidden; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; }
.item:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 18px 36px rgba(87, 56, 47, .16); }
.item:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.item .thumb { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #fff 0, var(--soft) 72%); }
.item:nth-child(4n+2) .thumb { background: radial-gradient(circle at 50% 42%, #fff 0, var(--pink) 72%); }
.item:nth-child(4n+3) .thumb { background: radial-gradient(circle at 50% 42%, #fff 0, var(--sage) 72%); }
.item:nth-child(4n+4) .thumb { background: radial-gradient(circle at 50% 42%, #fff 0, #fbeccb 72%); }
.item img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(87, 56, 47, .18)); transition: transform .35s; }
.item:hover img { transform: scale(1.06) rotate(-2deg); }
.item .tag { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 20px; background: var(--ink); color: var(--cream); font: 600 10px var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.item .info { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 12px; }
.item h3 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.item .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.item .chips span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 20px; background: var(--soft); font-size: 12px; color: #6f5f53; }
.item .dots i { width: 10px; height: 10px; margin-right: -7px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--latte); }
.item .dots i:last-of-type { margin-right: 0; }
.item .buy { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--latte); }
.item .price { margin: 0; padding: 0; background: none; border-radius: 0; min-width: 0; }
.item .price b { font: 600 19px var(--serif); white-space: nowrap; }
.item .price small { color: #8a7a6e; font-size: 12px; }
.item .price span { display: block; font-size: 12px; color: #8a7a6e; }
.item .go { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border-radius: 30px; background: var(--ink); color: var(--cream); font: 600 13px var(--sans); transition: background .2s; }
.item .go svg { width: 14px; height: 14px; transition: transform .2s; }
.item:hover .go { background: var(--coral); }
.item:hover .go svg { transform: translateX(3px); }
.cta-item { border: 1.5px dashed var(--coral); background: var(--cream); }
.cta-item .thumb { background: radial-gradient(circle at 50% 42%, #fff 0, var(--peach) 80%) !important; color: var(--coral); }
.cta-item .thumb svg { width: 42%; height: 42%; transition: transform .3s; }
.cta-item:hover .thumb svg { transform: translateY(-6px); }
.cta-item p { margin: 0; font-size: 13px; line-height: 1.35; color: #6f5f53; }
.cta-item .go { background: var(--coral); }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 30px; }
.pager:empty { display: none; }
.pager button { min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--latte); border-radius: 21px; background: #fff; color: var(--ink); font: 600 15px var(--sans); cursor: pointer; }
.pager button:hover:not(:disabled) { border-color: var(--ink); }
.pager button[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.pager button:disabled { opacity: .35; cursor: default; }
.pager span { color: #a08f82; }
@media (max-width: 800px) { .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .cat-filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 0 16px 4px; } .cat-filters::-webkit-scrollbar { display: none; } .cat-filters a { flex: none; } }

.workspace { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
/* пока модели нет — только зона загрузки по центру; параметры появляются после загрузки */
.workspace:not(.loaded) { grid-template-columns: 1fr; max-width: 760px; }
.workspace:not(.loaded) #order { display: none; }
.workspace:not(.loaded) .drop { min-height: 300px; align-content: center; gap: 10px; }
.drop .icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: var(--coral); font-size: 26px; }
.drop.compact .icon { display: none; }
.workspace.loaded #order { animation: slide-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.workspace.loaded .stage { animation: fade-up .45s ease-out both; }
@keyframes slide-in { from { opacity: 0; transform: translateX(32px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .workspace.loaded #order, .workspace.loaded .stage { animation: none; } }
@media (max-width: 900px) { .workspace { grid-template-columns: 1fr; } }
.drop { display: grid; gap: 6px; place-items: center; text-align: center; min-height: 220px; padding: 32px; border: 2px dashed var(--peach); border-radius: var(--radius); background: var(--cream); cursor: pointer; margin-bottom: 16px; }
.drop:hover, .drop.over { background: #fff; border-color: var(--coral); }
.drop b { font: 600 22px var(--serif); }
.drop.compact { min-height: 0; padding: 14px; }
.drop.compact b { font-size: 17px; }
.warn { color: #b3261e; font-weight: 500; }

.card { padding: 26px; border-radius: var(--radius); background: var(--cream); box-shadow: 0 18px 40px rgba(87, 56, 47, .08); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#order .grid2 { grid-template-columns: 1fr 120px; } /* количество — до 5 цифр, высоте нужно место */
form label { display: block; margin: 10px 0; font-size: 14px; font-weight: 600; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 11px 14px; font: 16px var(--sans); color: var(--ink); border: 1.5px solid var(--latte); border-radius: 14px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--coral); }
fieldset { border: 0; padding: 0; margin: 10px 0; }
legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches label { margin: 0; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--latte); cursor: pointer; }
.swatches input:checked + span { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.swatches input:focus-visible + span { outline: 2.5px solid var(--coral); outline-offset: 2px; }
.price { margin: 18px 0; padding: 16px 18px; border-radius: 17px; background: var(--pink); }
.price b { font: 600 28px var(--serif); }
.price .grams { display: block; color: #6f5d51; font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding: 0; list-style: none; }
.steps li { padding: 28px; border-radius: var(--radius); background: var(--soft); }
.steps b { font: italic 500 44px var(--serif); color: var(--coral); }

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.prices div { padding: 22px; border-radius: var(--radius); background: var(--cream); text-align: center; }
.prices b { display: block; font: 600 34px var(--serif); }
.cta { text-align: center; }

details { border-bottom: 1px solid var(--latte); padding: 18px 0; }
summary { cursor: pointer; font: 600 20px var(--serif); }
details p { margin: 10px 0 0; }

footer { padding: 48px 24px; text-align: center; background: var(--coffee); color: var(--cream); }
footer .muted { color: var(--latte); }

/* админка */
table { border-collapse: collapse; width: 100%; font-size: 14px; }
td, th { border-bottom: 1px solid var(--latte); padding: 8px; text-align: left; vertical-align: top; }

/* окно просмотра: управление поверх 3D */
.stage { position: relative; border-radius: var(--radius); overflow: hidden; background: #ece1d6; margin-bottom: 12px; }
.stage:has(.placing) { outline: 3px solid var(--yellow); }
#viewer { height: 460px; }
#viewer.placing { cursor: crosshair; }
.ov { position: absolute; left: 12px; right: 12px; display: flex; gap: 8px; align-items: center; pointer-events: none; }
.ov > * { pointer-events: auto; margin: 0; }
.ov-top { top: 12px; justify-content: space-between; }
.ov-mid { top: 52px; flex-direction: column; }
.ov-bottom { bottom: 12px; justify-content: center; }
.chip { padding: 6px 12px; border-radius: 30px; background: rgba(255, 250, 245, .92); backdrop-filter: blur(6px); font-size: 13px; box-shadow: 0 2px 10px rgba(87, 56, 47, .1); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.hint { background: var(--yellow); white-space: normal; text-align: center; }
.chip.warn { background: #fde4e1; white-space: normal; text-align: center; }
.tools { display: flex; gap: 2px; padding: 4px; border-radius: 40px; background: rgba(48, 38, 31, .88); backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(48, 38, 31, .25); }
.tools button { display: flex; gap: 6px; align-items: center; min-width: 40px; min-height: 40px; justify-content: center; padding: 0 12px; border: 0; border-radius: 30px; background: transparent; color: var(--cream); font: 600 15px var(--sans); cursor: pointer; }
.tools button:hover { background: rgba(255, 250, 245, .14); }
.tools button:focus-visible { outline: 2px solid var(--yellow); }
.tools button.active { background: var(--yellow); color: var(--ink); }
.tools button:disabled { opacity: .35; cursor: default; background: transparent; }
.tools .sep { width: 1px; margin: 8px 2px; background: rgba(255, 250, 245, .2); }
.ov-side { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; }
.ov-side.left { left: 12px; }
.ov-side.right { right: 12px; }
.ov-side > * { pointer-events: auto; }
.tools.vert { flex-direction: column; border-radius: 26px; }
.tools.vert button { font-size: 18px; }
.tools.vert .sep { width: auto; height: 1px; margin: 2px 8px; }
@media (max-width: 600px) { .tools .lbl { display: none; } .tools button { padding: 0 6px; min-width: 38px; } .tools .sep { margin: 8px 0; } .tools.vert .sep { margin: 2px 6px; } .tools.vert button { min-height: 36px; } .ov-side.left { left: 8px; } .ov-side.right { right: 8px; } #viewer { height: 380px; } }

/* корзина */
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 6px; border-radius: 10px; background: var(--coral); color: #fff; font-size: 12px; }
.drawer { margin: 0 0 0 auto; width: min(460px, 100%); max-width: 100%; height: 100%; max-height: 100%; padding: 24px; border: 0; background: var(--cream); color: var(--ink); overflow-y: auto; }
.drawer::backdrop { background: rgba(48, 38, 31, .45); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer-head h3 { margin: 0; font-size: 28px; }
.close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.close:hover { background: var(--latte); }
.empty { padding: 32px 0; text-align: center; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--latte); }
.cart-item img { width: 72px; height: 72px; border-radius: 14px; background: #fff; object-fit: cover; }
.cart-item .name { display: block; }
.cart-item small { display: block; color: #8a7a6e; }
.cart-item .calc { display: flex; align-items: center; gap: 6px; }
.spin, .btn.loading::before { display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.loading::before { content: ""; margin-right: 10px; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
/* загрузка модели — поверх страницы, клики не проходят. Анимации только transform/opacity — их крутит компоновщик,
   поэтому они не замирают, пока JS разбирает модель */
.loading { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(255, 250, 245, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
/* уведомление вместо системного alert — как окно загрузки: та же подложка, карточка и стаканчик (топпер грустный) */
.notice { width: min(360px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(48, 38, 31, .16); }
.notice[open] { animation: pop .25s ease-out; }
.notice::backdrop { background: rgba(255, 250, 245, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.notice form { display: grid; justify-items: center; gap: 4px; padding: 26px 24px 22px; text-align: center; }
.notice-topper { position: absolute; left: 30px; bottom: 40px; transform: rotate(28deg); transform-origin: 50% 100%; }
.notice-topper svg { display: block; }
.notice h3 { margin: 10px 0 4px; font: 600 22px/1.2 var(--serif); }
.notice-text p { margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: #8a7a6e; }
.notice .btn { margin-top: 10px; min-width: 150px; padding: 12px 22px; font-size: 15px; }
.pick { width: min(560px, calc(100vw - 32px)); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; width: 100%; margin-top: 8px; max-height: 60vh; overflow-y: auto; }
.pick-card { display: grid; gap: 6px; justify-items: center; padding: 10px; border: 1.5px solid var(--latte); border-radius: 18px; background: var(--cream); font: 600 14px/1.3 var(--sans); color: var(--ink); cursor: pointer; transition: border-color .15s, transform .15s; }
.pick-card:hover, .pick-card:focus-visible { border-color: var(--coral); transform: translateY(-1px); outline: none; }
.pick-card img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: var(--soft); }
.pick-card span { overflow-wrap: anywhere; }
.loading-card { display: grid; justify-items: center; gap: 4px; width: min(320px, calc(100vw - 32px)); padding: 26px 24px 22px; border-radius: var(--radius); background: #fff; box-shadow: 0 24px 60px rgba(48, 38, 31, .16); text-align: center; animation: pop .25s ease-out; }
.loading-card b { margin-top: 10px; font: 600 22px/1.2 var(--serif); }
.loading-card span { min-height: 1.4em; font-size: 14px; color: #8a7a6e; }
.loading-cup { position: relative; width: 64px; height: 70px; }
.loading-cupbody { position: absolute; bottom: 0; left: 0; }
.loading-topper { position: absolute; left: 18px; bottom: 44px; transform-origin: 50% 100%; animation: hop 1.1s cubic-bezier(.3, 0, .3, 1) infinite; will-change: transform; }
.loading-topper svg { display: block; }
.loading-bar { position: relative; width: 100%; height: 5px; margin-top: 12px; border-radius: 5px; background: var(--soft); overflow: hidden; }
.loading-bar::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: inherit; background: var(--coral); animation: bar 1.3s ease-in-out infinite; will-change: transform; }
@keyframes hop { 0%, 100% { transform: translateY(0) scale(1.08, .9); } 15% { transform: translateY(0) scale(1); } 50% { transform: translateY(-14px) rotate(-8deg); } 85% { transform: translateY(0) scale(1); } }
@keyframes bar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
@media (prefers-reduced-motion: reduce) { .loading-topper { animation: none; } .loading-bar::after { animation-duration: 3s; } }
@media (prefers-reduced-motion: reduce) { .spin, .btn.loading::before { animation-duration: 2.4s; } }
.qty { display: flex; align-items: center; gap: 4px; margin: 6px 0; }
.qty button { width: 32px; height: 32px; border: 1.5px solid var(--latte); border-radius: 50%; background: #fff; font-size: 18px; cursor: pointer; }
.qty input { width: 72px; margin: 0; padding: 6px; text-align: center; }
.cart-total { margin: 16px 0; padding: 16px 18px; border-radius: 17px; background: var(--pink); }
.cart-total b { font: 600 28px var(--serif); }
.cart-total small { display: block; color: #6f5d51; }
.choices { display: grid; gap: 6px; }
.choices label { display: flex; gap: 8px; align-items: center; margin: 0; padding: 10px 12px; border: 1.5px solid var(--latte); border-radius: 14px; background: #fff; font-weight: 500; cursor: pointer; }
.choices label:has(:checked) { border-color: var(--ink); }
.choices input { width: auto; margin: 0; }

/* цвета модели */
.slot-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.lid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.lid-card { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; hyphens: auto; overflow-wrap: break-word; padding: 10px 8px; border: 1.5px solid var(--latte); border-radius: 16px; background: #fff; font: 600 14px/1.25 var(--sans); color: var(--ink); text-align: center; cursor: pointer; transition: border-color .15s, transform .15s; }
.lid-card:hover { transform: translateY(-1px); }
.lid-card[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.lid-card img, .lid-card .lid-ico { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--soft); }
.lid-card .lid-ico { display: grid; place-items: center; font-size: 26px; color: #8a7a6e; }
.lid-card small { font-weight: 400; font-size: 12px; color: #8a7a6e; }
.slot { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1.5px solid var(--latte); border-radius: 30px; background: #fff; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; }
.slot.active { border-color: var(--ink); }
.slot.add { border-style: dashed; }
.slot .dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--latte); }
.slot .x { margin-left: 2px; color: #8a7a6e; font-size: 16px; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--latte); cursor: pointer; }
.swatches button.on { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.ov-brush { bottom: 64px; justify-content: center; }
.brush-hint { font-size: 12px; }
.brush-hint .row { justify-content: center; margin-top: 4px; }
.brush-hint label { display: flex; gap: 6px; align-items: center; margin: 0; font-size: 13px; }
.brush-hint input[type=range] { width: 90px; padding: 0; margin: 0; border: 0; background: none; }

.chip.toggle { border: 0; font: 500 13px var(--sans); color: var(--ink); cursor: pointer; margin-left: auto; margin-right: 0; }
.chip.toggle[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

#custom { overflow-x: clip; } /* выезд панели справа не даёт горизонтальной прокрутки */

/* согласие на обработку ПДн в корзине */
.consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.consent input { width: auto; margin: 3px 0 0; }
.consent-note { margin: -4px 0 12px; font-size: 13px; color: #8a7a6e; }
footer a { color: inherit; }
/* юридические страницы */
/* страница модели каталога (seo.js): картинка, цена, «Заказать», похожие */
.product { max-width: 1100px; margin: 0 auto; padding: 24px 24px 80px; }
.crumbs { margin-bottom: 18px; font-size: 14px; color: #8a7a6e; }
.crumbs a { color: inherit; }
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.product-img { aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--radius); background: radial-gradient(circle at 50% 42%, #fff 0, var(--pink) 72%); }
.product-img img { width: 82%; height: auto; filter: drop-shadow(0 18px 18px rgba(87, 56, 47, .2)); }
.product-info h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 6px; }
.product-info .lead { margin: 0 0 16px; color: #6f5f53; }
.product-info .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.product-info .chips span { padding: 5px 12px; border-radius: 20px; background: var(--soft); font-size: 14px; color: #6f5f53; }
.product-price { margin: 0 0 18px; }
.product-price b { font: 600 34px var(--serif); }
.product-price span { display: block; font-size: 14px; color: #8a7a6e; }
.facts { margin: 24px 0 0; padding-left: 20px; color: #6f5f53; line-height: 1.6; }
.more { margin-top: 64px; }
.more h2 { font-size: clamp(28px, 4vw, 40px); }
.more-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.more-grid a { display: grid; gap: 6px; text-decoration: none; color: inherit; font-weight: 500; }
.more-grid img { width: 100%; height: auto; border-radius: 16px; background: var(--soft); }
@media (max-width: 760px) { .product-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } .more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* страницы категорий и «для кофеен» */
.product > h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 12px; }
.product > h2 { margin-top: 48px; font-size: clamp(26px, 3.6vw, 38px); }
.seo-lead { max-width: 46em; margin: 0 0 22px; font-size: 18px; color: #6f5f53; }
.cat-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.cat-links a, .cat-links b { padding: 8px 15px; border: 1px solid var(--latte); border-radius: 30px; background: #fff; color: var(--ink); font: 500 15px var(--sans); text-decoration: none; }
.cat-links b { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.tiles a { padding-bottom: 6px; }
.tiles small { color: #8a7a6e; }
.seo-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 56px; padding: 26px 30px; border-radius: var(--radius); background: var(--peach); }
.seo-cta h2 { margin: 0 0 6px; font-size: 28px; }
.seo-cta p { margin: 0; color: #57382f; }
.seo-cta .btn { flex: none; }
.tiers { width: auto; border-collapse: collapse; margin: 6px 0 12px; min-width: min(420px, 100%); }
.tiers th, .tiers td { padding: 10px 16px; border-bottom: 1px solid var(--latte); text-align: left; }
.tiers td:last-child { font-weight: 600; color: var(--coral); }
.product .facts a, .product-info .chips a { color: var(--coral); }
.product-info .chips a { padding: 5px 12px; border-radius: 20px; background: var(--pink); font-size: 14px; text-decoration: none; }
.foot-links a { margin: 0 2px; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .seo-cta { flex-direction: column; align-items: flex-start; } }
.legal { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); }
.legal h2 { font-size: 22px; margin-top: 32px; }
.legal p, .legal li { line-height: 1.6; }

/* вход и «Мои заказы» */
.profile { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--soft); margin-bottom: 18px; }
.profile b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.profile small { color: #8a7a6e; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 15px var(--sans); }
.avatar.yandex { background: #fc3f1d; } .avatar.vk { background: #0077ff; }
.link-btn { border: 0; background: none; color: #8a7a6e; font: 500 14px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
.orders { display: grid; gap: 14px; }
.order-card { --c: #8a7a6e; --bg: var(--soft); background: #fff; border: 1px solid var(--latte); border-radius: 20px; padding: 16px; display: grid; gap: 12px;
  box-shadow: 0 6px 18px rgba(87, 56, 47, .06); animation: card-in .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 70ms); }
.order-card[data-status="pricing"] { --c: #6b46c1; --bg: #eee8fb; }
.order-card[data-status="new"] { --c: #b7791f; --bg: #fdf1d8; }
.order-card[data-status="checked"] { --c: #2b6cb0; --bg: #e3eefb; }
.order-card[data-status="printing"] { --c: #ad654a; --bg: #fbe6dc; }
.order-card[data-status="done"] { --c: #2f855a; --bg: #e2f3e8; }
.order-card[data-status="cancelled"] { --c: #c53030; --bg: #fde4e1; }
.order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.order-top h4 { margin: 0; font: 600 19px var(--serif); }
.order-top small { color: #8a7a6e; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 30px; background: var(--bg); color: var(--c); font: 600 13px var(--sans); white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.order-card:not([data-status="done"]):not([data-status="cancelled"]) .pill i { animation: pulse 1.6s ease-out infinite; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; padding-top: 6px; }
.track::before, .track .fill { content: ""; position: absolute; top: 12px; left: 12.5%; height: 3px; border-radius: 3px; }
.track::before { right: 12.5%; background: var(--latte); }
.track .fill { width: 0; background: var(--c); transition: width .9s cubic-bezier(.2, .8, .2, 1) .15s; }
.step { position: relative; display: grid; justify-items: center; gap: 6px; font-size: 11.5px; color: #a3958a; text-align: center; }
.step b { width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--latte); transition: border-color .3s, background .3s; transition-delay: calc(var(--s) * 180ms + 200ms); }
.step.on { color: var(--ink); }
.step.on b { border-color: var(--c); background: var(--c); }
.step.now b { box-shadow: 0 0 0 5px var(--bg); }
.order-items { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--cream); }
.order-items div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.dots { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.dots span { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); }
.order-foot { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: #8a7a6e; }
.order-foot b { font: 600 20px var(--serif); color: var(--ink); }
.orders-empty { text-align: center; padding: 32px 12px; display: grid; gap: 10px; justify-items: center; color: #8a7a6e; animation: card-in .45s both; }
.orders-empty .cup { font-size: 44px; }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
@media (prefers-reduced-motion: reduce) { .order-card, .orders-empty, .pill i { animation: none !important; } .track .fill, .step b { transition: none; } }

.orders.quiet .order-card { animation: none; }
.orders.quiet .order-card:not(.changed) .track .fill { transition: none; }
.order-card.changed { animation: status-flash 1.8s ease-out; }
@keyframes status-flash { 0% { box-shadow: 0 0 0 4px var(--c); transform: scale(1.01); } 100% { box-shadow: 0 6px 18px rgba(87, 56, 47, .06); transform: none; } }

/* вход: Яндекс ID / VK ID */
.oauth { display: grid; gap: 10px; margin-top: 12px; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 18px; border: 0; border-radius: 14px; font: 600 16px var(--sans); cursor: pointer; transition: transform .15s, filter .15s; }
.oauth-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.oauth-btn:disabled { opacity: .45; cursor: default; transform: none; }
.oauth-btn .mark { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 8px; font: 700 14px var(--sans); }
.oauth-btn.yandex { background: #000; color: #fff; } .oauth-btn.yandex .mark { background: #fc3f1d; color: #fff; }
.oauth-btn.vk { background: #0077ff; color: #fff; } .oauth-btn.vk .mark { background: #fff; color: #0077ff; }
.login-msg { min-height: 1.4em; font-size: 14px; color: #b3261e; }
.tg-notify { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 12px 14px; margin: -6px 0 16px; border-radius: 16px; background: #e8f6fd; font-size: 14px; }
.tg-notify button { padding: 8px 12px; border: 0; border-radius: 30px; background: #2aabee; color: #fff; font: 600 13px var(--sans); cursor: pointer; white-space: nowrap; }
.tg-notify.on { background: #e2f3e8; }

.tg-consent { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; font-size: 12.5px; font-weight: 400; color: #4a5a66; }
.tg-consent input { width: auto; margin: 2px 0 0; }
.tg-notify button:disabled { opacity: .45; cursor: default; }
.tg-notify .link-btn { background: none; color: #5d6b75; padding: 0; }
