/* flimsy.ru — стили сайта (27.10.2026). Цвета — с логотипа. Без сборщиков и Tailwind: один файл. */
:root {
  --abyss: #0E2A38; --abyss-2: #173D50;
  --forest: #1E5242; --forest-2: #286A56;
  --sage: #E4EFEA; --sky-l: #D4ECFA; --sky: #82BFE6; --sky-d: #2E5B78;
  --milk: #F6F9F8; --paper: #EBF2F0; --muted: #526B77; --berry: #D9534F;
  --line: 1.5px solid var(--abyss);
  --sh: 3px 3px 0 var(--abyss);
  --sh-sky: 3px 3px 0 var(--sky);
  --r: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --f-ui: 'Manrope', system-ui, sans-serif;
  --f-disp: 'Unbounded', 'Manrope', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--milk); color: var(--abyss); font: 500 16px/1.55 var(--f-ui); overflow-x: hidden; cursor: default;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
/* курсор: стрелка по умолчанию (без мигания текстового над подписями), «рука» над всем нажимаемым, текстовый — только в полях */
a, button, summary, label, [data-qv], .pill, .dd-list li, .ribbons span, .seg span { cursor: pointer; }
.inp, textarea, input[type=search], input[type=text] { cursor: text; }
.card, .card *, .step, .price, .chip, .eyebrow, .facts, .marquee { -webkit-user-select: none; user-select: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--f-disp); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
:focus-visible { outline: 2.5px solid var(--sky-d); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
[hidden] { display: none !important; }

/* ---------- кнопки и поля ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border: var(--line); border-radius: 14px; font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .2s; box-shadow: var(--sh); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--abyss); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--abyss); }
.btn-dark { background: var(--abyss); color: var(--milk); box-shadow: var(--sh-sky); }
.btn-dark:hover { box-shadow: 4px 4px 0 var(--sky); }
.btn-light { background: #fff; }
.btn-sky { background: var(--sky); color: var(--abyss); box-shadow: 3px 3px 0 #fff; }
.btn-sky:hover { box-shadow: 5px 5px 0 #fff; background: #9dcdee; }
.btn-sky:active { box-shadow: 1px 1px 0 #fff; }
.btn-big { height: 52px; padding: 0 24px; font-size: 15px; }
.btn svg, .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-btn { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: var(--line); border-radius: 14px; background: #fff; box-shadow: var(--sh); transition: transform .18s var(--ease), background .2s; text-decoration: none; }
.icon-btn:hover { transform: translate(-1px, -1px); }
.icon-btn.on { background: var(--sky-l); }
.icon-btn.on svg { fill: var(--berry); stroke: var(--berry); }
.badge { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; border: var(--line);
  background: var(--berry); color: #fff; font: 800 10px/17px var(--f-ui); font-style: normal; text-align: center; }
.inp { width: 100%; border: var(--line); border-radius: 12px; background: #fff; padding: 11px 14px; font: 600 15px var(--f-ui); color: var(--abyss); }
.inp::placeholder { color: #8aa0aa; }
textarea.inp { resize: vertical; min-height: 64px; }
.inp:focus { outline: none; box-shadow: 0 0 0 3px var(--sky-l); border-color: var(--sky-d); }
.chip { display: inline-block; padding: 4px 10px; border: var(--line); border-radius: 99px; background: #fff; font-size: 11px; font-weight: 800; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); border: var(--line); }
.eyebrow.light { color: var(--sky-l); }

/* ---------- шапка ---------- */
.topline { background: var(--abyss); color: var(--sky-l); font-size: 12px; font-weight: 600; text-align: center; padding: 8px 16px; }
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(246, 249, 248, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--line); transition: box-shadow .25s; }
.hdr.scrolled { box-shadow: 0 6px 20px -14px rgba(14, 42, 56, .5); }
.hdr-in { height: 72px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; margin-right: auto; }
.brand img { width: 54px; height: 54px; flex: none; transition: transform .3s var(--ease); }
.brand-light img { width: 46px; height: 46px; filter: drop-shadow(0 0 10px rgba(130, 191, 230, .35)); }
.brand:hover img { transform: rotate(-6deg) scale(1.04); }
.brand b { display: block; font: 700 22px/1 var(--f-disp); }
.brand small { display: block; margin-top: 4px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); white-space: nowrap; }
.nav { display: none; gap: 26px; font-weight: 700; font-size: 14px; }
.nav a { text-decoration: none; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--sky-d); transition: right .25s var(--ease); }
.nav a:hover::after { right: 0; }
.hdr-act { display: flex; align-items: center; gap: 8px; flex: none; }
.cart-btn { padding: 0 12px; }
.cart-count { font-style: normal; min-width: 24px; padding: 2px 6px; border-radius: 8px; background: var(--sky-l); color: var(--abyss); font-size: 12px; text-align: center; }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); } }
.hide-sm { display: none; }
/* телефон: подпись под названием прячем, кнопки компактнее — чтобы ничего не наезжало */
@media (max-width: 520px) {
  .brand small { display: none; }
  .hdr-in { gap: 8px; }
  .brand { gap: 7px; }
  .brand img { width: 40px; height: 40px; }
  .brand b { font-size: 19px; }
  .hdr-act { gap: 5px; }   /* 4.11: + кнопка «Мои заказы» — кнопки чуть меньше, чтобы не наезжать на «flimsy» */
  .hdr-act .icon-btn, .hdr-act .cart-btn { width: 38px; height: 38px; }
  .hdr-act .cart-btn { width: auto; padding: 0 9px; }
}
@media (max-width: 350px) { .brand span { display: none; } }
@media (min-width: 640px) { .hide-sm { display: inline; } .cart-btn { padding: 0 18px; } .only-sm { display: none; } }
@media (min-width: 900px) { .nav { display: flex; } .brand { margin-right: 0; } .nav { margin: 0 auto; } }

/* ---------- первый экран ---------- */
.hero { border-bottom: var(--line); background: radial-gradient(circle at 85% 15%, var(--sky-l) 0, transparent 45%), radial-gradient(circle at 10% 90%, var(--sage) 0, transparent 50%); overflow: hidden; }
.hero-in { display: grid; gap: 36px; padding-top: 44px; padding-bottom: 52px; }
.hero h1 { font-size: clamp(30px, 6.4vw, 54px); margin: 16px 0; }
.hero h1 em { font-style: normal; display: inline-block; margin-top: 6px; padding: 2px 14px 6px; background: var(--sky-l); border: var(--line); border-radius: 16px; box-shadow: var(--sh); transform: rotate(-1.2deg); }
.lead { color: var(--muted); font-size: 17px; max-width: 34em; margin: 0 0 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { border: var(--line); border-radius: 14px; background: #fff; padding: 8px 14px; font-size: 13px; color: var(--muted); box-shadow: 2px 2px 0 var(--abyss); }
.facts b { display: block; font: 700 17px var(--f-disp); color: var(--abyss); }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin: 0 auto; }
.blob { position: absolute; inset: 8%; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; background: var(--paper); border: var(--line); box-shadow: 6px 6px 0 var(--abyss);
  animation: morph 14s ease-in-out infinite; }
@keyframes morph { 50% { border-radius: 58% 42% 46% 54% / 42% 56% 44% 58%; } }
.float { position: absolute; filter: drop-shadow(3px 4px 0 rgba(14, 42, 56, .25)); animation: bob 6s ease-in-out infinite; }
.f1 { width: 46%; height: 46%; left: 27%; top: 22%; }
.f2 { width: 24%; height: 24%; left: 6%; top: 12%; animation-delay: -1.5s; }
.f3 { width: 22%; height: 22%; right: 6%; top: 8%; animation-delay: -3s; }
.f4 { width: 22%; height: 22%; right: 10%; bottom: 10%; animation-delay: -4.5s; }
.f5 { width: 18%; height: 18%; left: 12%; bottom: 14%; animation-delay: -2.2s; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(4deg); } }
.stitch-tag { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%) rotate(-2deg); white-space: nowrap; background: var(--sky); border: var(--line); border-radius: 12px;
  padding: 6px 14px; font-size: 12px; font-weight: 800; box-shadow: var(--sh); }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 70px; padding-bottom: 80px; } }

.marquee { background: var(--abyss); color: var(--sky-l); border-bottom: var(--line); overflow: hidden; }
.marquee-in { display: flex; width: max-content; animation: run 40s linear infinite; }
.marquee span { padding: 14px 22px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.marquee span::before { content: '✦'; margin-right: 22px; color: var(--sky); }
@keyframes run { to { transform: translateX(-50%); } }

/* ---------- разделы ---------- */
.sec { padding-top: 64px; padding-bottom: 64px; }
.narrow { max-width: 760px; }
.sec-hd { margin-bottom: 28px; }
.sec-hd.center { text-align: center; }
.sec-hd h2 { font-size: clamp(26px, 4.6vw, 40px); margin-top: 8px; }
.sec-hd p { color: var(--muted); margin: 10px 0 0; max-width: 40em; }
.sec-tint { background: var(--sage); border-top: var(--line); border-bottom: var(--line); }

/* ---------- каталог ---------- */
.tools { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 4px 6px 2px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; height: 38px; padding: 0 16px; border: var(--line); border-radius: 99px; background: #fff; font-weight: 800; font-size: 13px; box-shadow: 2px 2px 0 var(--abyss); transition: background .2s, transform .15s; }
.pill:hover { transform: translateY(-1px); }
.pill.on { background: var(--abyss); color: var(--milk); box-shadow: 2px 2px 0 var(--sky); }
.tools-r { display: flex; gap: 10px; }
.tools-r .inp { height: 42px; padding: 0 14px; font-size: 14px; }
.tools-r select { width: auto; flex: none; }
@media (min-width: 800px) { .tools { flex-direction: row; align-items: center; justify-content: space-between; } .tools-r .inp[type=search] { width: 220px; } .tools-r .srch { flex: none; } }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1060px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: var(--line); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translate(-2px, -3px); box-shadow: 5px 6px 0 var(--abyss); }
.card-img { position: relative; aspect-ratio: 1; background: var(--paper); border-bottom: var(--line); cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-img img { transform: scale(1.06); }
.ph-ico { width: 56%; height: 56%; transition: transform .5s var(--ease); }
.card:hover .ph-ico { transform: rotate(-6deg) scale(1.06); }
.card-img .chip { position: absolute; left: 10px; top: 10px; }
.sale { position: absolute; left: 10px; bottom: 10px; background: var(--berry); color: #fff; border: var(--line); border-radius: 10px; padding: 2px 8px; font-size: 12px; font-weight: 800; }
.heart { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 2px 2px 0 var(--abyss); transition: transform .2s var(--ease); }
.heart svg { width: 17px; height: 17px; fill: none; stroke: var(--abyss); stroke-width: 2.2; transition: fill .2s, stroke .2s; }
.heart:hover { transform: scale(1.1); }
.heart.on svg { fill: var(--berry); stroke: var(--berry); }
.heart.pop { animation: pop .45s var(--ease); }
@keyframes pop { 35% { transform: scale(1.35); } }
.card-b { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-b h3 { font: 700 14px/1.3 var(--f-ui); cursor: pointer; }
.card-f { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font: 700 17px var(--f-disp); }
.price s { color: var(--muted); font-size: 12px; }
.add { width: 40px; height: 40px; flex: none; border-radius: 12px; border: var(--line); background: var(--abyss); color: var(--milk);
  display: flex; align-items: center; justify-content: center; box-shadow: 2px 2px 0 var(--sky); transition: transform .15s, background .2s; }
.add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.add:hover { transform: translate(-1px, -1px); }
.add.ok { background: var(--forest-2); }
.buy { flex: none; }
.step { display: flex; align-items: center; gap: 2px; height: 40px; padding: 3px; border: var(--line); border-radius: 13px; background: var(--abyss); color: var(--milk);
  box-shadow: 2px 2px 0 var(--sky); animation: grow .25s var(--ease); user-select: none; -webkit-user-select: none; }
.step button { width: 30px; height: 100%; border: 0; border-radius: 9px; background: var(--abyss-2); color: var(--sky-l); font-size: 18px; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .18s, color .18s, transform .12s var(--ease); }
.step button:hover { background: var(--sky); color: var(--abyss); }
.step button:active { transform: scale(.86); }
.step span { min-width: 24px; text-align: center; font-weight: 800; font-size: 15px; cursor: default; }
.step span.bump { animation: bump .35s var(--ease); }
@keyframes grow { from { transform: scale(.7); opacity: 0; } }
@media (min-width: 760px) { .card-b { padding: 14px 16px 16px; } .card-b h3 { font-size: 15px; } }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }

/* ---------- материалы, коробочка, вопросы ---------- */
.feats { display: grid; gap: 16px; }
@media (min-width: 800px) { .feats { grid-template-columns: repeat(3, 1fr); } }
.feat { background: #fff; border: var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--sh); }
.feat span { display: inline-block; font: 700 13px var(--f-disp); color: var(--sky-d); background: var(--sky-l); border: var(--line); border-radius: 10px; padding: 2px 10px; }
.feat h3 { font-size: 18px; margin: 14px 0 8px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
.gift { display: grid; gap: 28px; background: var(--abyss); color: #fff; border: var(--line); border-radius: 26px; padding: 32px 22px; box-shadow: 6px 6px 0 var(--sky); overflow: hidden; }
.gift h2 { font-size: clamp(24px, 4.4vw, 36px); margin: 12px 0; }
.gift p { color: var(--sky-l); margin: 0 0 22px; }
.gift-art { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.box { position: relative; width: 170px; height: 130px; margin-top: 30px; background: var(--paper); border: var(--line); border-radius: 12px; }
.box .lid { position: absolute; left: -10px; right: -10px; top: -26px; height: 30px; background: #fff; border: var(--line); border-radius: 10px; }
.box .rib-v { position: absolute; left: 50%; top: -26px; bottom: 0; width: 18px; margin-left: -9px; background: var(--sky); border-left: var(--line); border-right: var(--line); }
.box .rib-h { position: absolute; left: 0; right: 0; top: 46%; height: 16px; background: var(--sky); border-top: var(--line); border-bottom: var(--line); }
.box .bow { position: absolute; left: 50%; top: -48px; width: 60px; height: 28px; margin-left: -30px; background:
  radial-gradient(ellipse at 25% 50%, var(--sky) 55%, transparent 57%), radial-gradient(ellipse at 75% 50%, var(--sky) 55%, transparent 57%); animation: bob 5s ease-in-out infinite; }
.gift-art { position: relative; }
.gift-img { width: 100%; max-width: 340px; animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }
.has-img .box { display: none; }
.swatches { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--sky-l); }
.swatches i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); border: 1.5px solid #fff; }
@media (min-width: 800px) { .gift { grid-template-columns: 1.3fr 1fr; align-items: center; padding: 48px; } }
.faq { background: #fff; border: var(--line); border-radius: 16px; margin-bottom: 12px; box-shadow: 2px 2px 0 var(--abyss); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 16px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border: var(--line); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-weight: 800; transition: transform .25s var(--ease); background: var(--sky-l); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq-b { overflow: hidden; }
.faq-b p { margin: 0; padding: 0 18px 18px; color: var(--muted); }

/* ---------- подвал ---------- */
.ftr { background: var(--abyss); color: var(--sky-l); margin-top: 30px; flex: none; }
.ftr-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 30px; padding-bottom: 30px; }
.brand-light b { color: #fff; } .brand-light small { color: var(--sky); }
.ftr-nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; font-weight: 700; }
.ftr-nav a { text-decoration: none; } .ftr-nav a:hover { color: #fff; }
.ftr-c { margin: 0; font-size: 13px; opacity: .7; }

/* ---------- корзина ---------- */
.drawer-bg, .modal-bg { position: fixed; inset: 0; z-index: 60; background: rgba(14, 42, 56, .55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-bg.open, .modal-bg.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: 100%; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(circle at 100% 0, var(--sky-l) 0, transparent 40%), radial-gradient(circle at 0 100%, var(--sage) 0, transparent 45%), var(--milk);
  transform: translateX(105%); transition: transform .42s var(--ease); }
.drawer.open { transform: none; }
@media (min-width: 560px) {
  .drawer { top: 12px; right: 12px; bottom: 12px; width: 440px; border: var(--line); border-radius: 26px;
    box-shadow: 0 30px 60px -12px rgba(14, 42, 56, .55), 0 0 0 6px rgba(255, 255, 255, .35); }
}
.drawer-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1.5px dashed rgba(14, 42, 56, .25);
  background: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.drawer-hd h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.drawer-hd h2 i { font: 800 12px/1 var(--f-ui); font-style: normal; background: var(--abyss); color: var(--sky-l); border-radius: 99px; padding: 5px 9px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px 28px; -webkit-overflow-scrolling: touch; }
.cart-empty { text-align: center; padding: 34px 16px; margin-top: 10px; color: var(--muted); background: #fff; border: var(--line); border-radius: 20px; box-shadow: var(--sh); }
.cart-empty .ph-ico { width: 120px; height: 120px; margin: 0 auto 6px; animation: bob 5s ease-in-out infinite; }
.cart-empty b { display: block; font: 600 18px var(--f-disp); color: var(--abyss); margin-bottom: 6px; }
.cart-empty p { margin: 0 0 18px; }
.cart-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ci .step { height: 36px; animation: none; } .ci .step button { width: 26px; }
.ci { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; background: #fff; border: var(--line); border-radius: 16px; padding: 8px; box-shadow: 2px 2px 0 var(--abyss); animation: slidein .3s var(--ease); }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } }
.ci-img { width: 58px; height: 58px; border-radius: 10px; border: var(--line); background: var(--paper); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ci-img img { width: 100%; height: 100%; object-fit: cover; } .ci-img .ph-ico { width: 70%; height: 70%; }
.ci-t { font-size: 13px; font-weight: 700; line-height: 1.3; }
.ci-t small { display: block; color: var(--muted); font-weight: 600; }
.ci-p { font: 700 14px var(--f-disp); margin-top: 3px; }
.qty { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qty button { width: 28px; height: 28px; border: var(--line); border-radius: 8px; background: var(--paper); font-weight: 800; line-height: 1; }
.qty span { font-weight: 800; font-size: 14px; }
.checkout fieldset { border: var(--line); border-radius: 18px; background: #fff; padding: 14px; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.checkout legend { float: left; width: 100%; padding: 0; }
.checkout legend { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; color: var(--forest); }
.ribbons, .seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg { grid-template-columns: repeat(4, 1fr); margin-bottom: 4px; }
.ribbons input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.ribbons span, .seg span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border: var(--line); border-radius: 12px; background: #fff;
  font-size: 12px; font-weight: 800; cursor: pointer; transition: background .2s, box-shadow .2s; }
.ribbons span::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--c); border: 1.5px solid var(--abyss); }
.ribbons input:checked + span, .seg input:checked + span { background: var(--sky-l); box-shadow: 2px 2px 0 var(--abyss); }
.ribbons input:focus-visible + span, .seg input:focus-visible + span { outline: 2.5px solid var(--sky-d); }
.hint { margin: 0; font-size: 12px; color: var(--muted); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 12px; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--abyss); flex: none; }
.total { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 0 4px; padding: 14px 16px; background: var(--abyss); color: #fff; border-radius: 16px; }
.total b { color: var(--sky-l); }
.total span { font-weight: 800; } .total b { font: 700 26px var(--f-disp); }
.checkout .btn-big { width: 100%; margin-top: 12px; }
.form-err { color: var(--berry); font-weight: 700; font-size: 13px; min-height: 18px; margin: 8px 0 0; }
.inp.bad { border-color: var(--berry); box-shadow: 0 0 0 3px rgba(217, 83, 79, .15); }
.done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 24px; gap: 12px; }
.done h3 { font-size: 22px; }
.done p { color: var(--muted); margin: 0 0 8px; }
.done .btn { width: 100%; max-width: 280px; }
.done-ico { width: 84px; height: 84px; border-radius: 50%; background: var(--sky-l); border: var(--line); box-shadow: var(--sh); display: flex; align-items: center; justify-content: center; animation: pop .6s var(--ease); }
.done-ico svg { width: 44px; height: 44px; fill: none; stroke: var(--forest); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- быстрый просмотр ---------- */
.modal { position: fixed; z-index: 61; left: 50%; top: 50%; width: min(760px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow-y: auto;
  background: var(--milk); border: var(--line); border-radius: 24px; box-shadow: 6px 6px 0 var(--abyss); display: grid;
  transform: translate(-50%, -46%) scale(.96); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .25s; }
.modal.open { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
.modal-x { position: absolute; right: 12px; top: 12px; z-index: 2; }
.qv-img { aspect-ratio: 1; background: var(--paper); display: flex; align-items: center; justify-content: center; border-bottom: var(--line); }
.qv-img img { width: 100%; height: 100%; object-fit: cover; }
.qv-info { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.qv-info h3 { font-size: 20px; }
.qv-info p { color: var(--muted); margin: 0; font-size: 15px; }
.qv-info .price b { font-size: 24px; }
.qv-clasp { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 800; margin-top: 6px; }
.qv-info .btn-big { margin-top: 8px; }
@media (min-width: 720px) { .modal { grid-template-columns: 1fr 1fr; } .qv-img { aspect-ratio: auto; border-bottom: 0; border-right: var(--line); } .qv-info { padding: 34px 26px; } }

/* ---------- уведомления ---------- */
.toasts { position: fixed; z-index: 80; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(380px, calc(100% - 32px));
  display: flex; flex-direction: column-reverse; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; background: var(--abyss); color: #fff; border: var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--sh-sky);
  font-size: 14px; display: flex; gap: 10px; align-items: center; opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .35s var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast b { display: block; color: var(--sky-l); }
.toast small { opacity: .8; }
/* вид уведомления (4.11.2026): цветной значок и полоска слева */
.toast { --tc: var(--sky); position: relative; overflow: hidden; padding-left: 14px; box-shadow: 3px 3px 0 var(--tc); }   /* тень — цветом вида уведомления */
.toast::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--tc); }
.t-ico { flex: none; width: 30px; height: 30px; margin-left: 4px; border-radius: 50%; display: grid; place-items: center; background: var(--tc); color: var(--abyss); }
.t-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.toast.t-ok { --tc: #5FC488; } .toast.t-ok b { color: #B7EBCB; }
.toast.t-rm, .toast.t-err { --tc: #F07A73; } .toast.t-rm b, .toast.t-err b { color: #FFC9C4; }
.toast.t-fav { --tc: #F59AB0; } .toast.t-fav b { color: #FFD3DE; } .toast.t-fav .t-ico svg { fill: currentColor; stroke-width: 1.6; }
.toast.in .t-ico { animation: t-pop .45s cubic-bezier(.3, 1.6, .5, 1) .05s both; }
@keyframes t-pop { from { transform: scale(.3); } }
.toast small { display: block; word-break: break-word; }

/* ---------- мои заказы, политика ---------- */
.page-hd { padding-top: 46px; }
.page-hd h1 { font-size: clamp(28px, 5vw, 42px); margin-top: 8px; }
.page-hd p { color: var(--muted); }
.orders { display: flex; flex-direction: column; gap: 16px; padding-bottom: 60px; }
.order { background: #fff; border: var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 20px; }
.order-hd { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.order-hd h3 { font-size: 18px; }
.order-hd span { color: var(--muted); font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 18px 0 14px; }
/* статус заказа: .steps .step — не путать с кнопками количества .step (тёмная плашка) */
.steps .step { display: block; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; animation: none;
  text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .01em; line-height: 1.3; color: #8aa0aa; }
.steps .step i { display: block; height: 8px; border-radius: 4px; background: var(--paper); border: 1px solid rgba(14, 42, 56, .25); margin-bottom: 6px; }
.steps .step.on { color: var(--muted); }
.steps .step.cur, .steps .step.on:last-child { color: var(--abyss); font-weight: 800; }   /* где заказ сейчас — тёмным */
@media (max-width: 480px) { .steps .step { font-size: 11.5px; } }
/* заполненные полоски — один градиент на всю шкалу (4.11.2026): новый голубой → в работе сиреневый → отправлен жёлтый → выполнен зелёный */
.steps .step.on i { border-color: var(--abyss); background: linear-gradient(90deg, #82BFE6, #B9A6F0 33%, #F2C14E 66%, #5FC488) calc(var(--k) * 33.333%) 0 / 400% 100%; position: relative; overflow: hidden; }
.steps .step.cur i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); transform: translateX(-100%); animation: step-shine 2.2s ease-in-out infinite; }
@keyframes step-shine { 60%, 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .steps .step.cur i::after { animation: none; } }
.order.cancel .steps { opacity: .4; }
/* отменённый заказ (4.11.2026): красная штрихованная полоса, плашка, состав бледнее и зачёркнут */
.cancel-box { margin: 16px 0 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cancel-bar { display: block; width: 100%; height: 8px; border-radius: 4px; border: 1px solid #c4433f;
  background: repeating-linear-gradient(-45deg, #F07A73 0 8px, #FFC9C4 8px 14px); }
.cancel-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; background: #FFE4E1; border: 1.5px solid #c4433f;
  color: #a8322e; font-size: 13px; font-weight: 800; }
.cancel-tag svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; }
.cancel-box p { margin: 0; font-size: 13px; color: var(--muted); }
.order.cancel { border-color: #c4433f; box-shadow: 4px 4px 0 #F07A73; }
.order.cancel ul, .order.cancel .order-hd span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(196, 67, 63, .55); }
.order.cancel > .meta { color: #a0b3bb; }
.order ul { margin: 0; padding-left: 18px; font-size: 14px; }
.order .meta { margin-top: 10px; font-size: 13px; color: var(--muted); }
.track { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 10px; background: var(--sky-l); border: var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.track b { font-weight: 800; letter-spacing: .02em; }
.track-copy { border: var(--line); background: #fff; border-radius: 8px; padding: 4px 10px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: inherit; }
.track-go { margin-left: auto; font-weight: 800; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* документ: карточки с номерами */
.legal { display: flex; flex-direction: column; gap: 14px; padding: 10px 0 60px; }
.legal-item { display: grid; grid-template-columns: 40px 1fr; gap: 16px; background: #fff; border: var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 20px 22px; }
.legal-n { width: 40px; height: 40px; border-radius: 12px; background: var(--sky-l); border: var(--line); display: flex; align-items: center; justify-content: center; font: 700 16px var(--f-disp); }
.legal-item h2 { font-size: 18px; margin: 8px 0 8px; }
.legal-item p, .legal-item li { color: var(--muted); font-size: 15px; margin: 0; }
.legal-item ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.legal-date { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
@media (max-width: 520px) { .legal-item { grid-template-columns: 1fr; gap: 6px; padding: 18px; } }

/* ---------- появление: первый экран — сразу, остальное — при прокрутке ---------- */
.rise { animation: rise .8s var(--ease) both; } .rise-2 { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
/* прячем только когда скрипт точно включил анимацию (класс anim на <html>) — иначе всё видно сразу */
.anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.anim .reveal.vis { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* вход покупателя через Telegram */
.tg-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.tg-me { margin: 0 0 4px; font-size: 13px; background: var(--sky-l); border: var(--line); border-radius: 12px; padding: 10px 12px; }
.linkbtn { border: 0; background: none; padding: 0; text-decoration: underline; font-weight: 700; font-size: 13px; color: var(--sky-d); }
.inp[readonly] { background: var(--paper); }

/* свой выпадающий список (вместо системного <select>) */
.dd { position: relative; }
.dd > select { display: none; }
.dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 42px; padding: 0 12px 0 14px; border: var(--line); border-radius: 12px;
  background: #fff; font: 700 14px var(--f-ui); text-align: left; cursor: pointer; transition: box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.dd-btn:hover { box-shadow: 2px 2px 0 var(--abyss); }
.dd-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); flex: none; }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); min-width: 100%; margin: 0; padding: 5px; list-style: none; background: #fff;
  border: var(--line); border-radius: 14px; box-shadow: 4px 4px 0 var(--abyss); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top;
  pointer-events: none; transition: opacity .18s, transform .22s var(--ease); }
.dd.open .dd-list { opacity: 1; transform: none; pointer-events: auto; }
.dd-list li { padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  white-space: nowrap; user-select: none; -webkit-user-select: none; }
.dd-list li:hover, .dd-list li.hi { background: var(--sky-l); }
.dd-list li[aria-selected=true]::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--abyss); }
.tools-r .dd { flex: none; min-width: 180px; }
.qv-clasp .dd-btn { height: 46px; }

/* заставка при входе (28.10.2026): вязаный фон, нитка обвивает логотип, вокруг «выпрыгивают» грибок, вишня, ромашка и клубника;
   уходит, затягиваясь в кружок к логотипу, — сайт проявляется от краёв */
.preloader { display: none; }
.pl .preloader { display: flex; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(circle at 18% 20%, #bfe0f7 0, transparent 48%), radial-gradient(circle at 85% 82%, #cfe6dc 0, transparent 52%), linear-gradient(160deg, #f4f9fc, #e6f1f7 55%, #eef5f1);
  clip-path: circle(75% at 50% 44%); transition: clip-path .7s cubic-bezier(.6, 0, .35, 1), visibility .7s; }
.pl .preloader::before { content: ''; position: absolute; inset: 0;      /* глянец: мягкий объём и блик, который проходит по экрану */
  background: radial-gradient(120% 80% at 50% -10%, rgba(255, 255, 255, .95) 0, rgba(255, 255, 255, 0) 55%),
              radial-gradient(70% 60% at 50% 44%, rgba(255, 255, 255, .7) 0, rgba(255, 255, 255, 0) 70%); }
.pl .preloader::after { content: ''; position: absolute; top: -50%; bottom: -50%; left: -60%; width: 45%; transform: rotate(18deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .65) 50%, rgba(255, 255, 255, 0));
  animation: pl-shine 1.6s .2s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes pl-shine { to { left: 120%; } }
.pl .preloader { animation: pl-auto .5s 4s forwards; }   /* страховка: даже без скрипта уходит сама */
@keyframes pl-auto { to { opacity: 0; visibility: hidden; } }
.pl body { overflow: hidden; }
.preloader.out { clip-path: circle(0% at 50% 44%); visibility: hidden; }
.preloader.out .pl-in { transform: scale(.9); }
.pl-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .7s var(--ease), opacity .6s; }
.pl-logo { position: relative; width: 210px; height: 210px; display: grid; place-items: center; margin-bottom: 4px; }
.pl-logo img { width: 150px; height: 150px; position: relative; z-index: 2; animation: pl-logo .9s var(--ease) both, bob 4s 1s ease-in-out infinite; }
.pl-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pl-ring circle { fill: none; stroke-linecap: round; }
.pl-track { stroke: var(--abyss); stroke-opacity: .12; stroke-width: 2; stroke-dasharray: 2 9; }
.pl-yarn { stroke: var(--sky-d); stroke-width: 4; stroke-dasharray: 591; stroke-dashoffset: 591; animation: pl-wrap 1.2s .15s cubic-bezier(.5, 0, .2, 1) forwards; }
@keyframes pl-wrap { to { stroke-dashoffset: 0; } }
.pl-ico { position: absolute; z-index: 3; width: 54px; height: 54px; left: 50%; top: 50%; margin: calc(-27px + var(--y)) 0 0 calc(-27px + var(--x)); opacity: 0;
  filter: drop-shadow(2px 3px 0 rgba(14, 42, 56, .22)); animation: pl-pop .7s cubic-bezier(.3, 1.6, .5, 1) forwards, bob 3.6s 1.2s ease-in-out infinite; }
.pl-ico.i1 { --x: -104px; --y: -64px; animation-delay: .35s, 1.2s; }
.pl-ico.i2 { --x: 106px; --y: -58px; animation-delay: .45s, 1.5s; }
.pl-ico.i3 { --x: 98px; --y: 70px; animation-delay: .55s, 1.8s; }
.pl-ico.i4 { --x: -98px; --y: 74px; animation-delay: .65s, 2.1s; }
@keyframes pl-pop { from { opacity: 0; transform: translate(calc(-1 * var(--x)), calc(-1 * var(--y))) scale(.2) rotate(-40deg); } to { opacity: 1; transform: none; } }   /* вылетают из-за логотипа на своё место */
.pl-in b { font: 700 34px var(--f-disp); color: var(--abyss); letter-spacing: -.02em; opacity: 0; }
.pl-in small { font-size: 13px; font-weight: 700; color: var(--muted); opacity: 0; }
/* надписи — только когда шрифт загружен (без подмены на глазах); если шрифт не пришёл за 2,5 с — всё равно показать */
.fonts-ok .pl-in b { animation: pl-in .6s .2s var(--ease) forwards; }
.fonts-ok .pl-in small { animation: pl-in .6s .35s var(--ease) forwards; }
.pl:not(.fonts-ok) .pl-in b, .pl:not(.fonts-ok) .pl-in small { animation: pl-in .4s 2.5s forwards; }
@keyframes pl-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pl-thread { width: 200px; height: 22px; margin: 6px 0 2px; }
.pl-thread path { fill: none; stroke: var(--sky-d); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: pl-draw 1.4s .3s var(--ease) forwards; }
@keyframes pl-logo { from { opacity: 0; transform: scale(.6) rotate(-10deg); } }
@keyframes pl-draw { to { stroke-dashoffset: 0; } }

/* фото товаров: второй ракурс при наведении, галерея в быстром просмотре */
.card-img img.alt { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease), transform .5s var(--ease); }
@media (hover: hover) { .card:hover .card-img img.alt { opacity: 1; } }
.qv-img { position: relative; overflow: hidden; }
.gal { position: absolute; inset: 0; }
.gal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease); }
.gal img.on { opacity: 1; }
.gal-nav { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border: var(--line); border-radius: 50%; background: rgba(255, 255, 255, .9);
  display: flex; align-items: center; justify-content: center; box-shadow: 2px 2px 0 var(--abyss); transition: transform .15s; }
.gal-nav:hover { transform: scale(1.08); } .gal-nav:active { transform: scale(.92); }
.gal-nav svg { width: 18px; height: 18px; fill: none; stroke: var(--abyss); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gal-nav.prev { left: 12px; } .gal-nav.next { right: 12px; }
.gal-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.gal-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .7); border: 1.5px solid var(--abyss); cursor: pointer; transition: transform .2s, background .2s; }
.gal-dots i.on { background: var(--abyss); transform: scale(1.2); }
@media (min-width: 720px) { .qv-img { min-height: 460px; } }
.gal img.care { object-fit: contain; background: #d2a9a8; }   /* памятка по уходу — целиком, на её розовом фоне */

/* уведомление про cookie: маленькая карточка снизу слева (на телефоне — во всю ширину) */
.cookie { position: fixed; z-index: 70; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px;
  background: #fff; border: var(--line); border-radius: 18px; padding: 12px 12px 12px 14px; box-shadow: 0 18px 40px -16px rgba(14, 42, 56, .45), var(--sh);
  transform: translateY(30px); opacity: 0; transition: transform .45s var(--ease), opacity .35s; }
.cookie.in { transform: none; opacity: 1; }
.cookie p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); flex: 1; }
.cookie a { color: var(--sky-d); font-weight: 700; }
.cookie .btn { height: 38px; padding: 0 16px; flex: none; }
.cookie-ico { width: 30px; height: 30px; flex: none; fill: var(--sky-l); stroke: var(--abyss); stroke-width: 1.4; stroke-linejoin: round; }
.cookie-ico circle { fill: var(--abyss); stroke: none; }
@media (min-width: 640px) { .cookie { right: auto; max-width: 420px; left: 24px; bottom: 24px; } }
/* быстрый просмотр: плашка категории — по размеру текста, справа место под крестик */
.qv-info .chip { align-self: flex-start; }
.qv-info > .chip, .qv-info > h3 { margin-right: 52px; }

/* вход в шапке */
.acc { position: relative; }
.acc-ava { position: absolute; inset: 3px; border-radius: 11px; background: var(--sky); color: var(--abyss); font: 800 16px/36px var(--f-disp); text-align: center; }
.acc-ava img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.acc-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: 270px; background: #fff; border: var(--line); border-radius: 18px; padding: 16px;
  box-shadow: 0 18px 40px -16px rgba(14, 42, 56, .45), var(--sh); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right;
  pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.acc.open .acc-pop { opacity: 1; transform: none; pointer-events: auto; }
.acc-pop b { display: block; font: 700 17px var(--f-disp); margin-bottom: 6px; }
.acc-pop p { margin: 0 0 12px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.acc-widget { min-height: 40px; margin-bottom: 10px; }
.acc-link { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 10px; background: none; font: 700 14px var(--f-ui); color: var(--abyss); text-decoration: none; }
.acc-link:hover { background: var(--sky-l); }
#acc-logout { color: var(--berry); }
@media (max-width: 560px) { .acc { position: static; } .acc-pop { position: fixed; left: 12px; right: 12px; top: 80px; width: auto; transform-origin: top center; } }

.btn-tg { width: 100%; background: #2AABEE; color: #fff; box-shadow: 3px 3px 0 var(--abyss); margin-bottom: 8px; }
.btn-tg:hover { background: #229ED9; box-shadow: 4px 4px 0 var(--abyss); }
.btn-tg svg { fill: #fff; stroke: none; width: 20px; height: 20px; }

/* правка товаров на главной (только админ) */
.ed-only { display: none !important; }
body.editing .ed-only { display: revert !important; }
body.editing .ed-pen.ed-only { display: flex !important; }
body.editing .ed-new.ed-only { display: inline-flex !important; margin-bottom: 14px; }
.ed-toggle { position: fixed; z-index: 65; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); height: 48px; padding: 0 18px; }
.ed-toggle.on { background: var(--forest-2); }
.ed-toggle svg { width: 18px; height: 18px; }
.ed-pen { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border: var(--line); border-radius: 50%; background: #fff;
  align-items: center; justify-content: center; box-shadow: var(--sh); z-index: 2; }
.ed-pen svg { width: 24px; height: 24px; fill: none; stroke: var(--abyss); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.editing .card { outline: 2px dashed var(--sky-d); outline-offset: 3px; }
body.editing .card-img img { opacity: .75; }
#ed-hidden { margin-top: 34px; }
#ed-hidden h3 { font-size: 20px; margin-bottom: 12px; } #ed-hidden h3 small { font: 600 13px var(--f-ui); color: var(--muted); margin-left: 8px; }
.ed-hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ed-hcard { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1.5px dashed var(--abyss); border-radius: 14px; background: #fff; text-align: left; opacity: .85; }
.ed-hcard img, .ed-hcard i { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--paper); display: block; }
.ed-hcard b { font-size: 13px; line-height: 1.3; } .ed-hcard small { color: var(--muted); font-size: 12px; }
.ed-modal { display: block; width: min(560px, calc(100% - 24px)); }
.ed-form { padding: 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.ed-form h3 { font-size: 20px; margin-right: 50px; }
.ed-form label, .ed-lbl { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 800; }
.ed-form .consent { flex-direction: row; font-weight: 600; font-size: 14px; color: var(--abyss); margin-top: 0; }
.ed-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; }
@media (max-width: 520px) { .ed-row { grid-template-columns: 1fr 1fr; } .ed-row .ed-lbl { grid-column: 1 / -1; } }
.ed-photos { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; }
.ed-ph { position: relative; flex: none; width: 92px; height: 92px; border: var(--line); border-radius: 12px; overflow: hidden; background: var(--paper);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.ed-ph.drag { z-index: 5; cursor: grabbing; box-shadow: 4px 6px 0 var(--abyss); transition: none; }
.ed-photos.dragging .ed-ph:not(.drag) { transition: transform .2s; }
.ed-ph.main { box-shadow: 0 0 0 3px var(--sky); }
.ed-ph img { width: 100%; height: 100%; object-fit: cover; }
.ed-ph button { position: absolute; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--abyss); background: #fff; font-size: 13px; font-weight: 800; line-height: 1; padding: 0; }
.ed-ph button[data-act=main] { left: 4px; } .ed-ph button[data-act=rm] { right: 4px; color: var(--berry); }
.ed-ph span { position: absolute; left: 0; right: 0; bottom: 0; background: var(--abyss); color: #fff; font-size: 10px; font-weight: 800; text-align: center; padding: 2px; }
.ed-add { align-self: flex-start; height: 40px; cursor: pointer; }
.ed-btns { display: flex; gap: 10px; align-items: center; } .ed-btns .btn-big { flex: 1; }
#ed-del { color: var(--berry); }
body.ed-open .ed-toggle{display:none}
.ed-lbl .dd-btn { height: 46px; font-size: 15px; font-weight: 600; }

/* ---------- админка /admin (28.10.2026) ---------- */
.adm-card { background: #fff; border: var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 22px; }
.adm-login { flex: 1; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(circle at 80% 15%, var(--sky-l), transparent 45%), radial-gradient(circle at 15% 85%, var(--sage), transparent 50%), var(--milk); }
.adm-login .adm-card { width: min(400px, 100%); display: flex; flex-direction: column; gap: 18px; padding: 28px; }
.adm-tg { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 60px; }
.adm-tg .hint { margin: 0; }
.adm-or { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.adm-or::before, .adm-or::after { content: ''; flex: 1; height: 1px; background: rgba(14, 42, 56, .15); }
.adm-form { display: flex; flex-direction: column; gap: 12px; }
.adm-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 800; }
.adm-back { align-self: center; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.adm-back:hover { color: var(--abyss); }
.adm-out:hover { background: #fde8e7; }
.adm-main { padding-top: 22px; padding-bottom: 60px; display: flex; flex-direction: column; gap: 18px; width: 100%; }

.adm-tabs { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; background: var(--paper); border: var(--line); border-radius: 14px; box-shadow: var(--sh); }
.adm-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: none;
  font: 800 14px var(--f-ui); color: var(--abyss); transition: background .2s; }
.adm-tabs button.on { background: var(--abyss); color: var(--milk); }
.adm-tabs button span { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: rgba(14, 42, 56, .1); font-size: 12px; display: inline-grid; place-items: center; }
.adm-tabs button.on span { background: var(--sky); color: var(--abyss); }
.adm-tabs button span.hot { background: var(--berry); color: #fff; }

.adm-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.adm-tools .inp { flex: 1 1 220px; height: 44px; }
.adm-tools .dd { width: 190px; }
.adm-tools .dd-btn { height: 44px; }
#a-new { margin-left: auto; }

.adm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.adm-p { display: flex; flex-direction: column; padding: 0; text-align: left; background: #fff; border: var(--line); border-radius: var(--r); box-shadow: var(--sh);
  overflow: hidden; font: inherit; color: inherit; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.adm-p:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--abyss); }
.adm-p[hidden] { display: none; }
.adm-p-img { position: relative; aspect-ratio: 1; background: var(--sage); border-bottom: var(--line); }
.adm-p-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-p-img .chip { position: absolute; left: 8px; top: 8px; background: var(--sage); }
.adm-p.off .adm-p-img img { filter: grayscale(.7); opacity: .6; }
.adm-p.off .chip { background: #fff3cd; }
.adm-n { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 99px; background: rgba(14, 42, 56, .75); color: #fff; font-size: 11px; font-weight: 800; }
.adm-p-b { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; flex: 1; }
.adm-p-b > b { font-size: 14px; line-height: 1.3; }
.adm-p-b small { font-size: 12px; font-weight: 700; color: var(--muted); }
.adm-p-b .price { margin-top: auto; padding-top: 6px; }
.adm-empty { text-align: center; color: var(--muted); font-weight: 700; }
.adm-zero { text-align: center; }
.adm-zero b { font: 700 18px var(--f-disp); }

.adm-orders { display: flex; flex-direction: column; gap: 14px; }
.adm-o { background: #fff; border: var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; display: grid; gap: 14px; }
.adm-o[hidden] { display: none; }
.adm-o-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-o-hd b { font: 700 16px var(--f-disp); }
.adm-o-hd small { color: var(--muted); font-weight: 700; font-size: 13px; }
.adm-o-hd form { margin-left: auto; }
.adm-x { width: 38px; height: 38px; color: var(--berry); }
.adm-x:hover { background: #fde8e7; }
.st { padding: 3px 10px; border: var(--line); border-radius: 99px; font-size: 12px; font-weight: 800; }
.st-new { background: var(--sky-l); } .st-work { background: #fff3cd; } .st-sent { background: var(--sage); }
.st-done { background: var(--forest); color: #fff; } .st-cancel { background: #fde8e7; color: var(--berry); }
.adm-o-who { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 18px; }
.adm-o-who div.wide { grid-column: 1 / -1; }
.adm-o-who dt { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.adm-o-who dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.adm-o-items { margin: 0; padding: 0; list-style: none; border: var(--line); border-radius: 14px; overflow: hidden; }
.adm-o-items li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; font-weight: 600; font-size: 14px; }
.adm-o-items li + li { border-top: 1px solid rgba(14, 42, 56, .12); }
.adm-o-items li.sum { background: var(--paper); font-weight: 800; }
.adm-o-f { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-o-f .dd { width: 170px; }
.adm-o-f .dd-btn { height: 44px; }
.adm-o-f .inp { flex: 1 1 160px; height: 44px; }
@media (max-width: 560px) {
  .adm .hdr-act .btn { height: 40px; padding: 0 12px; font-size: 13px; }
  .adm-tabs { align-self: stretch; } .adm-tabs button { flex: 1; justify-content: center; }
  .adm-tools .dd, .adm-o-f .dd { flex: 1 1 140px; width: auto; }
  #a-new { flex: 1 1 100%; margin: 0; }
  .adm-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .adm-o-f .btn { flex: 1 1 100%; }
}
.adm .hdr .brand { margin-right: auto; }
.ed-note { margin: -6px 0 0; }
.adm-lead { margin: 0; font-weight: 600; color: var(--muted); font-size: 15px; }
.adm-login .btn-tg { margin: 0; }
.adm-login .form-err:empty { display: none; }
.adm-login { grid-template-columns: minmax(0, 400px); justify-content: center; }
.adm-login .adm-card { width: 100%; min-width: 0; }
.adm-login .btn-tg { white-space: normal; height: auto; min-height: 52px; }
.qv-specs { margin: 2px 0 0; display: grid; gap: 0; border-top: 1px dashed rgba(14, 42, 56, .2); }
.qv-specs div { display: flex; gap: 10px; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed rgba(14, 42, 56, .2); font-size: 14px; }
.qv-specs dt { color: var(--muted); font-weight: 600; }
.qv-specs dd { margin: 0; font-weight: 700; text-align: right; }
#qv-desc { white-space: pre-line; }

/* ---------- страница товара /p/… (28.10.2026) ---------- */
.card-b h3 a { color: inherit; text-decoration: none; }
.card-b h3 a::after { content: ''; }
.card-b h3 a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.ci-t a { color: inherit; text-decoration: none; } .ci-t a:hover { text-decoration: underline; }
.qv-more { align-self: center; font-size: 14px; font-weight: 800; color: var(--forest); text-decoration: none; padding: 4px 2px; }
.qv-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.specs { margin: 0; border-top: 1px dashed rgba(14, 42, 56, .2); }
.specs div { display: flex; gap: 12px; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed rgba(14, 42, 56, .2); font-size: 15px; }
.specs dt { color: var(--muted); font-weight: 600; } .specs dd { margin: 0; font-weight: 700; text-align: right; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 22px; font-size: 13px; font-weight: 700; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--abyss); text-decoration: underline; }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs span { color: var(--abyss); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

.pp { display: grid; gap: 26px; padding-top: 18px; padding-bottom: 40px; }
@media (min-width: 900px) { .pp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 24px; } }
.pp-gal { min-width: 0; }
@media (min-width: 900px) { .pp-gal { position: sticky; top: 92px; } }
.pp-main { position: relative; aspect-ratio: 1; background: var(--paper); border: var(--line); border-radius: 24px; box-shadow: 5px 5px 0 var(--abyss); overflow: hidden;
  display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.pp-main > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease); }
.pp-main > img.on { opacity: 1; }
.pp-main > img.care { object-fit: contain; background: #d2a9a8; }
.pp-main .ph-ico { width: 40%; height: 40%; color: var(--berry); }
.pp-main .sale { left: 14px; bottom: auto; top: 14px; font-size: 14px; padding: 4px 10px; }
.pp-count { position: absolute; right: 14px; bottom: 14px; padding: 4px 10px; border-radius: 99px; background: rgba(14, 42, 56, .78); color: #fff; font-size: 12px; font-weight: 800; }
.pp-main .ed-pen { left: 14px; bottom: 14px; top: auto; margin: 0; z-index: 2; }
.pp-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.pp-thumbs button { flex: none; width: 74px; height: 74px; padding: 0; border: var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); cursor: pointer;
  opacity: .62; transition: opacity .2s, transform .2s var(--ease), box-shadow .2s; }
.pp-thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.pp-thumbs button.on { opacity: 1; box-shadow: 3px 3px 0 var(--sky); }
.pp-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumbs .care img { object-fit: contain; background: #d2a9a8; }

.pp-info { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-chips .chip { text-decoration: none; color: var(--abyss); background: var(--sage); }
.pp-chips a.chip:hover { background: var(--sky-l); }
.chip-off { background: #fff3cd !important; }
.pp-info h1 { font-size: clamp(26px, 4.4vw, 38px); line-height: 1.12; margin: 0; overflow-wrap: anywhere; }
.pp-price b { font-size: clamp(26px, 4vw, 32px); }
.pp-price s { font-size: 16px; }
.pp-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px; background: #fff; border: var(--line); border-radius: 20px; box-shadow: var(--sh); }
.pp-add { flex: 1 1 200px; }
.pp-buy .pp-step { order: 0; } .pp-buy [data-go-cart] { order: 1; }
.pp-buy .pp-step { height: 52px; flex: none; }
.pp-buy .pp-step button { width: 40px; font-size: 22px; }
.pp-buy .pp-step span { min-width: 34px; font-size: 18px; }
.pp-buy [data-go-cart] { flex: 1 1 170px; }
.pp-acts { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 10px; z-index: 2; }
.pp-acts .heart { position: static; width: 46px; height: 46px; box-shadow: 2px 2px 0 var(--abyss); }
.pp-acts .heart svg { width: 21px; height: 21px; }
.pp-share svg { fill: none !important; stroke: var(--abyss) !important; stroke-width: 2.2; stroke-linecap: round; }
.pp-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 700; color: var(--forest); }
.pp-perks li { display: flex; align-items: center; gap: 7px; }
.pp-perks svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pp-desc { white-space: pre-line; color: var(--abyss-2); font-size: 16px; line-height: 1.65; }
.pp-h { font: 700 18px var(--f-disp); margin: 6px 0 -4px; }
.pp-more { margin-top: 6px; }
.pp-more .faq { margin-bottom: 10px; }

.pp-rel { padding-top: 20px; }
.pp-rel-hd { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pp-rel-hd h2 { margin: 0; }

.nf { text-align: center; padding-bottom: 80px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.nf-ico { width: 84px; height: 84px; color: var(--berry); animation: nf-bob 4s ease-in-out infinite; }
@keyframes nf-bob { 50% { transform: translateY(-8px) rotate(-6deg); } }
.nf .btn { margin-top: 10px; }

/* панель «В корзину» внизу экрана на телефоне */
.pp-bar { position: fixed; z-index: 45; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); display: none; align-items: center; gap: 12px;
  padding: 10px 10px 10px 16px; background: #fff; border: var(--line); border-radius: 18px; box-shadow: 4px 4px 0 var(--abyss);
  transform: translateY(140%); transition: transform .35s var(--ease); }
.pp-bar.on { transform: none; }
.pp-bar-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pp-bar-t b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-bar-t span { font: 700 16px var(--f-disp); }
.pp-bar-buy { flex: none; } .pp-bar-buy .btn { height: 44px; }
.pp-bar-buy .step { height: 44px; }
@media (max-width: 899px) { .pp-bar { display: flex; } body.bar-on .toasts { bottom: 90px; } body.bar-on .cookie { display: none; } }

/* быстрый просмотр крупнее (28.10.2026): фото — квадрат на большую часть окна, текст рядом, длинное описание — в 6 строк (целиком — на странице товара) */
@media (min-width: 720px) {
  #qv { width: min(1080px, calc(100vw - 48px), calc((100vh - 48px) * 1.85)); grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  #qv .qv-img { aspect-ratio: 1; min-height: 0; }
  #qv .qv-info { padding: 34px 30px 26px; min-width: 0; }
  #qv .qv-info h3 { font-size: 24px; }
  #qv .qv-info .price b { font-size: 28px; }
}
#qv-desc { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
#qv .gal img:not(.care) { cursor: zoom-in; }
.adm-o-who dd a { color: var(--forest); font-weight: 800; }

/* ---------- стопка украшений в шапке главной (28.10.2026, вместо круга с грибом) ---------- */
.deck-art { aspect-ratio: auto; max-width: 480px; padding: 26px 0 50px; }
.deck-art .float { opacity: .95; }
.deck-art .f2 { left: -2%; top: 4%; width: 21%; height: 21%; }
.deck-art .f3 { right: -2%; top: 0; width: 19%; height: 19%; }
.deck-art .f4 { right: -3%; bottom: 22%; width: 19%; height: 19%; }
.deck-art .f5 { left: -3%; bottom: 26%; width: 16%; height: 16%; }
.deck-art .stitch-tag { bottom: 0; z-index: 5; }
.deck { position: relative; width: min(330px, 78%); margin: 0 auto; outline: none; }
.deck-cards { position: relative; aspect-ratio: 330 / 485; }   /* высота — чтобы влезали 2 строки названия и цена даже на узком телефоне */
.deck-card { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; border: var(--line); border-radius: 22px; box-shadow: 5px 6px 0 var(--abyss);
  overflow: hidden; transform-origin: 50% 90%; transition: transform .6s cubic-bezier(.2, .9, .25, 1), opacity .45s ease; will-change: transform; touch-action: pan-y; }
.deck-card[data-pos="0"] { z-index: 3; }
.deck-card[data-pos="1"] { z-index: 2; transform: translate(16px, -12px) rotate(5deg) scale(.96); }
.deck-card[data-pos="2"] { z-index: 1; transform: translate(-14px, -20px) rotate(-6deg) scale(.92); }
.deck-card[data-pos="h"] { z-index: 0; opacity: 0; transform: scale(.86); }
.deck-card[data-pos="out"] { z-index: 4; opacity: 0; transform: translate(-118%, 10px) rotate(-16deg); }
.deck-card:not([data-pos="0"]) { pointer-events: none; }
.deck-card:not([data-pos="0"]) .deck-b { opacity: .5; }
.deck-card.drag { transition: none; cursor: grabbing; }
.deck-img { position: relative; display: block; flex: none; aspect-ratio: 1; background: var(--paper); border-bottom: var(--line); overflow: hidden; }
.deck-img img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; transition: transform .6s var(--ease); }
.deck-card[data-pos="0"]:hover .deck-img img { transform: scale(1.04); }
.deck-img .chip { position: absolute; left: 12px; top: 12px; }
.deck-img .sale { left: 12px; bottom: 12px; }
.deck-b { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 12px 14px 14px; transition: opacity .3s; min-height: 0; }
.deck-t { font-weight: 800; font-size: 15px; line-height: 1.3; color: var(--abyss); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deck-t:hover { text-decoration: underline; text-underline-offset: 3px; }
.deck-ctl { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.deck-ctl .gal-nav { position: static; margin: 0; flex: none; background: #fff; }
.deck-prog { flex: 1; height: 6px; border-radius: 3px; background: rgba(14, 42, 56, .12); overflow: hidden; }
.deck-prog i { display: block; height: 100%; width: 0; background: var(--abyss); border-radius: 3px; }
.deck.play .deck-prog i { animation: deck-fill 10s linear forwards; }
.deck.paused .deck-prog i { animation-play-state: paused; }
@keyframes deck-fill { to { width: 100%; } }
.deck-n { flex: none; font-size: 13px; font-weight: 800; color: var(--muted); min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) { .deck-art { max-width: 400px; } }
@media (prefers-reduced-motion: reduce) { .deck-card { transition: opacity .2s; } .deck-prog { visibility: hidden; } }

/* ---------- «Нет в наличии» (28.10.2026): товар виден, купить нельзя ---------- */
.so-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); z-index: 2; white-space: nowrap; padding: 7px 14px; border: var(--line);
  border-radius: 12px; background: #fff; color: var(--abyss); font-size: 13px; font-weight: 800; box-shadow: 3px 3px 0 var(--abyss); pointer-events: none; }
.card.soldout .card-img img { filter: grayscale(.55); opacity: .7; }
.card.soldout:hover .card-img img { transform: none; }
.card.soldout .price b { color: var(--muted); }
.so-note { font-size: 12px; font-weight: 800; color: var(--muted); text-align: right; line-height: 1.2; }
.pp-main .so-tag { font-size: 16px; padding: 9px 18px; }
.pp-sold { flex-direction: column; align-items: flex-start; gap: 4px; background: var(--paper); }
.pp-sold b { font: 700 18px var(--f-disp); } .pp-sold span { color: var(--muted); font-size: 14px; }
.chip-so { background: #fff3cd !important; }
.ci-so { display: block; color: var(--berry) !important; font-weight: 800; }
#qv-add:disabled { background: var(--paper); color: var(--muted); box-shadow: none; transform: none; cursor: not-allowed; }
.ed-state { grid-template-columns: repeat(3, 1fr); margin: 2px 0 0; }
.ed-form .ed-state label { display: block; position: relative; }
.ed-state span { font-size: 12px; text-align: center; padding: 0 4px; line-height: 1.15; }
.adm-p.soldout .adm-p-img img { filter: grayscale(.5); opacity: .7; }
.adm-p.soldout .chip { background: #ffe1c2; }

/* бесплатная доставка в корзине, реквизиты в подвале (29.10.2026) */
.free-dlv { margin: 8px 0 0; font-size: 13px; font-weight: 800; color: var(--muted); text-align: right; }
.free-dlv.ok { color: var(--forest-2); }
.free-dlv.ok::before { content: '✓ '; }
.ftr-req { flex-basis: 100%; margin: 0; font-size: 12px; opacity: .55; }


/* фон под каталогом и вопросами — как в шапке: мягкие голубые и мятные пятна по краям (29.10.2026) */
.page-bg { background:
  radial-gradient(640px 520px at 94% 140px, var(--sky-l) 0, transparent 70%),
  radial-gradient(720px 620px at 3% 34%, var(--sage) 0, transparent 70%),
  radial-gradient(680px 580px at 97% 66%, var(--sky-l) 0, transparent 70%),
  radial-gradient(640px 540px at 6% 96%, var(--sage) 0, transparent 70%); }

/* ---------- отзывы (4.11.2026) ---------- */
.rv-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.rv-sum { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.rv-sum b { color: var(--abyss); }
.rv-stars { display: inline-flex; gap: 1px; color: #C9D6DB; font-size: 16px; line-height: 1; }
.rv-stars i { font-style: normal; }
.rv-stars i.on { color: #F2A93B; }
.rv-nav { display: flex; gap: 8px; }
.rv-nav .icon-btn { font-size: 22px; font-weight: 800; }
.rv-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  align-items: start; padding: 4px 6px 14px 2px; scrollbar-width: none; }
.rv-row::-webkit-scrollbar { display: none; }
.rv { scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border: var(--line); border-radius: 16px; overflow: hidden; box-shadow: 4px 4px 0 var(--abyss); }
.rv-ph { display: block; aspect-ratio: 4 / 3; background: var(--paper); border-bottom: var(--line); overflow: hidden; }
.rv-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rv-ph:hover img { transform: scale(1.04); }
.rv-b { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rv-b p { margin: 0; line-height: 1.5; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.rv-b p.open { -webkit-line-clamp: unset; }
.rv-meta { margin-top: auto; display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.rv-meta a { color: var(--sky-d); font-weight: 700; }
@media (max-width: 900px) { .rv-row { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .rv-row { grid-auto-columns: 82%; gap: 14px; } .rv-nav { display: none; } }
/* админка: отзывы */
.adm-rv-f { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.adm-rv-f h3 { font-size: 20px; }
.adm-rv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; }
.adm-rv-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.adm-rv-grid .wide { grid-column: 1 / -1; }
.adm-rv-grid textarea { resize: vertical; font: inherit; }
.adm-rv-f .btn { align-self: flex-start; }
.adm-rv-list { display: flex; flex-direction: column; gap: 12px; }
.adm-rv { display: flex; gap: 16px; align-items: flex-start; padding: 16px; }
.adm-rv img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: var(--line); flex: none; }
.adm-rv > div { flex: 1; min-width: 0; }
.adm-rv small { display: block; color: var(--muted); margin-top: 2px; }
.adm-rv p { margin: 8px 0 0; white-space: pre-line; }
.adm-rv-st { color: #F2A93B; }
@media (max-width: 700px) { .adm-rv-grid { grid-template-columns: 1fr; } .adm-rv img { width: 60px; height: 60px; } }

/* «записка» покупателя у стопки в шапке (4.11.2026): место и наклон выбирает site.js */
.rv-pop { position: absolute; z-index: 6; width: 220px; --rot: -3deg; opacity: 0; pointer-events: none;
  transform: rotate(var(--rot)) scale(.6) translateY(10px); transition: opacity .3s ease, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.rv-pop.in { opacity: 1; pointer-events: auto; transform: rotate(var(--rot)) scale(1); }
.rv-pop a { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 12px; background: #FFFBEF; border: var(--line); border-radius: 16px;
  box-shadow: 4px 5px 0 var(--abyss); color: var(--abyss); text-decoration: none; }
.rv-pop a::before { content: ''; position: absolute; top: -9px; left: 50%; width: 46px; height: 16px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(130, 191, 230, .75); border: 1.5px dashed rgba(14, 42, 56, .35); border-radius: 3px; }   /* кусочек скотча */
.rv-pop q { font-size: 14px; line-height: 1.4; font-weight: 600; quotes: '«' '»'; }
.rv-pop b { font-size: 13px; }
.rv-pop small { font-size: 11px; color: var(--muted); margin-top: -4px; }
.rv-pop .rv-stars { font-size: 14px; }
.rv-pop:hover a { background: #fff; }
.deck-art:has(.rv-pop) .stitch-tag { transition: opacity .3s; }
.deck-art.popping .stitch-tag { opacity: 0; }
/* узкий экран: под стопкой, на месте плашки «каждая петелька» */
.deck-art:has(.rv-pop) { padding-bottom: 138px; }
.rv-pop[data-slot^="b"] { bottom: 6px; left: 50%; width: min(300px, 86%); margin-left: calc(min(300px, 86%) / -2); }
.rv-pop[data-slot="b2"] { margin-left: calc(min(300px, 86%) / -2 - 18px); }
.rv-pop[data-slot="b3"] { margin-left: calc(min(300px, 86%) / -2 + 18px); }
.rv-pop[data-slot^="b"] q { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* широкий экран: свисает с кромки карточки, на фото заходит на 50 px */
@media (min-width: 1220px) {
  .deck-art:has(.rv-pop) { padding-bottom: 50px; }
  .deck-art.popping .stitch-tag { opacity: 1; }
  .rv-pop { width: 180px; }
  .rv-pop[data-slot^="l"] { left: calc(50% - min(165px, 39%) - 130px); }
  .rv-pop[data-slot^="r"] { left: calc(50% + min(165px, 39%) - 50px); }
  .rv-pop[data-slot="l1"] { top: 3%; }
  .rv-pop[data-slot="l2"] { top: 20%; }
  .rv-pop[data-slot="r1"] { top: 7%; }
  .rv-pop[data-slot="r2"] { top: 28%; }
}
/* звёзды на карточке каталога */
.card-rv { display: inline-flex; align-items: center; gap: 4px; margin-top: -4px; font-size: 13px; font-weight: 800; color: var(--abyss); text-decoration: none; }
.card-rv i { font-style: normal; color: #F2A93B; }
.card-rv span { font-weight: 600; color: var(--muted); }
.card-rv:hover span { text-decoration: underline; }

/* отзывы в окне быстрого просмотра (4.11.2026): кнопка у цены, панель выезжает справа поверх описания */
.modal-rv { position: absolute; right: 12px; top: 66px; z-index: 4; }   /* под крестиком, такая же */
.modal-rv svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.modal-rv .badge { background: #F2A93B; color: var(--abyss); }
#qv { overflow-x: hidden; }
#qv.rv-open { overflow-y: hidden; }
.qv-rvp { position: absolute; z-index: 3; top: 0; right: 0; bottom: 0; width: 100%; display: flex; flex-direction: column; background: var(--milk);
  transform: translateX(102%); visibility: hidden; transition: transform .5s cubic-bezier(.2, .85, .25, 1), visibility 0s .5s; }
.qv-rvp.open { transform: none; visibility: visible; transition: transform .5s cubic-bezier(.2, .85, .25, 1), visibility 0s; }
.qv-rvp-hd { flex: none; display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 14px; border-bottom: 1px dashed rgba(14, 42, 56, .2); }
.qv-rvp-hd > div { padding-right: 52px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.qv-rvp-hd > div > b { font: 600 22px/1.1 var(--f-disp); margin-right: 4px; }
.qv-rvp-hd > div > span:last-child { color: var(--muted); font-weight: 600; }
.qv-rvp-back { align-self: flex-start; border: var(--line); background: #fff; border-radius: 10px; padding: 6px 12px; font: inherit; font-size: 14px; font-weight: 800; color: var(--abyss); cursor: pointer; box-shadow: 2px 2px 0 var(--abyss); }
.qv-rvp-back:hover { background: var(--sky-l); }
.qv-rvp-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.qv-rvp-list .qv-rv-i { opacity: 0; transform: translateX(24px); transition: opacity .35s, transform .45s cubic-bezier(.2, .85, .25, 1); }
.qv-rvp.open .qv-rv-i { opacity: 1; transform: none; }
.qv-rvp.open .qv-rv-i:nth-child(2) { transition-delay: .06s; } .qv-rvp.open .qv-rv-i:nth-child(3) { transition-delay: .12s; } .qv-rvp.open .qv-rv-i:nth-child(n+4) { transition-delay: .18s; }
.qv-rv-i { background: #FFFBEF; border: 1.5px solid rgba(14, 42, 56, .18); border-radius: 12px; padding: 12px 14px; }
.qv-rv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.qv-rv-i .rv-stars { font-size: 13px; }
.qv-rv-i p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--abyss); white-space: pre-line; }
@media (min-width: 720px) {
  .qv-rvp { width: calc(100% / 2.2); border-left: var(--line); }   /* ровно поверх правой колонки (фото 1.2fr : текст 1fr) */
  .qv-rvp-hd { padding: 34px 30px 16px; }
  .qv-rvp-list { padding: 18px 30px 26px; }
}
@media (prefers-reduced-motion: reduce) { .qv-rvp, .qv-rvp-list .qv-rv-i { transition: none; } }
#qv .modal-x { z-index: 4; }   /* крестик виден и над панелью отзывов */
.modal-rv.on svg { fill: none; stroke: currentColor; }   /* «нажата» — фон кнопки, без красной заливки как у сердечка */
.qv-rvp-hd > div { flex-wrap: wrap; }
.qv-rvp-hd > div > span:last-child { white-space: nowrap; }

/* ---------- свои элементы вместо браузерных (4.11.2026, static/js/ui.js) ---------- */
/* окно «Удалить?» */
.cf-wrap { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.cf-bg { position: absolute; inset: 0; background: rgba(14, 42, 56, .45); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.cf { position: relative; width: min(380px, 100%); background: #fff; border: var(--line); border-radius: 20px; box-shadow: 6px 7px 0 var(--abyss); padding: 24px 22px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .25s, transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.cf-wrap.in .cf-bg, .cf-wrap.in .cf { opacity: 1; } .cf-wrap.in .cf { transform: none; }
.cf-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #FFE4E1; border: var(--line); color: var(--berry); margin-bottom: 4px; }
.cf-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cf b { font: 600 18px/1.3 var(--f-disp); }
.cf p { margin: 0; color: var(--muted); font-size: 14px; }
.cf-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 12px; }
.cf-ok { background: var(--berry); color: #fff; border: var(--line); }
.cf-ok:hover { background: #c4433f; }
/* поиск: свой крестик */
.srch { position: relative; display: block; flex: 1; min-width: 0; }
.srch .inp { padding-right: 38px; }
input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.srch-x { position: absolute; right: 8px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border: 0; border-radius: 50%; background: var(--paper); color: var(--abyss);
  display: grid; place-items: center; padding: 0; cursor: pointer; opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.srch.has .srch-x { opacity: 1; transform: none; pointer-events: auto; }
.srch-x:hover { background: var(--sky-l); }
.srch-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
/* файл: своя кнопка с превью */
.pick { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; border: var(--line); border-radius: 12px; background: #fff; padding: 6px 10px 6px 6px;
  cursor: pointer; color: var(--abyss) !important; font-size: 14px !important; font-weight: 700 !important; min-height: 46px; transition: background .2s; }
.pick:hover { background: var(--sky-l); }
.pick-ph { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--paper); border: 1.5px solid rgba(14, 42, 56, .25); display: grid; place-items: center; overflow: hidden; }
.pick-ph svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.pick-ph img { width: 100%; height: 100%; object-fit: cover; }
.pick-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-x { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--abyss); background: #fff; color: var(--berry); font-weight: 800; padding: 0; line-height: 1; cursor: pointer; }
/* галочка согласия в корзине */
.consent input { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border: var(--line); border-radius: 6px; background: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.consent input::after { content: ''; width: 10px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.consent input:checked { background: var(--abyss); }
.consent input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.consent input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--sky-l); }
.inp.bad + span, .consent input.bad { border-color: var(--berry); }
