/* bookleggers — общие токены и компоненты (главная, /cabinet/, /admin/).
   Подключается ДО <style> страницы: правила страницы идут позже и при равной специфичности перекрывают эти.
   Порядок правил внутри файла — как в исходном index.html; не переставлять (см. .files .pv-img / .pv-img.ph / .pv-img.load). */

/* токены и сброс */
:root { --bg:#0a0a0a; --logo:#f5f5f5; }
* { margin:0; padding:0; box-sizing:border-box; }

/* служебное */
@keyframes tin { to { opacity:1; transform:none; } }
[hidden] { display:none !important; }

/* форма заказа: зона загрузки, список файлов и превью макетов, поля */
.order, .odone { color:var(--logo); padding-bottom:44px; font-family:-apple-system,"Helvetica Neue",Arial,sans-serif; }
.dz {
  display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; padding:40px 20px; cursor:pointer;
  border:1.5px dashed rgba(245,245,245,.22); border-radius:16px; color:var(--logo);
  background:radial-gradient(90% 120% at 50% 0%, rgba(200,215,255,.06), transparent 70%);
  transition:border-color .3s, background .3s, transform .4s cubic-bezier(.2,.8,.2,1);
}
.dz svg { opacity:.6; transition:transform .5s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.dz b { font-weight:400; font-size:16px; letter-spacing:-.005em; }
.dz span { font-size:13px; opacity:.55; }
.dz small { font-size:11px; letter-spacing:.06em; opacity:.35; margin-top:6px; }
.dz:hover, .dz:focus-visible { border-color:rgba(245,245,245,.5); outline:none; }
.dz:hover svg, .dz:focus-visible svg { transform:translateY(-3px); opacity:1; }
.dz.over { border-color:var(--logo); background:radial-gradient(90% 120% at 50% 0%, rgba(200,215,255,.14), transparent 70%); transform:scale(1.005); }
.dz.over svg { transform:translateY(-6px); opacity:1; }
.files { list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.files.pvs { display:grid; grid-template-columns:repeat(auto-fill,minmax(168px,1fr)); gap:12px; }
.pv { position:relative; padding:0 !important; border-radius:14px !important; background:rgba(245,245,245,.04) !important; box-shadow:inset 0 0 0 1px rgba(245,245,245,.1); overflow:hidden; display:block !important; }
.files .pv-img, .files .pv-img:hover, .files .pv-img:focus-visible { width:100%; height:auto; border-radius:0; font-size:inherit; line-height:normal; transform:none; background:#141416; }
.files .pv-img.load { background:linear-gradient(100deg,#131315 30%,#1b1b1e 50%,#131315 70%) 0 0/300% 100%; }
.pv-img { position:relative; display:flex; align-items:center; justify-content:center; width:100%; aspect-ratio:4/3; padding:0; border:0; cursor:zoom-in; background:#141416; color:var(--logo); overflow:hidden; }
.pv-img img { width:100%; height:100%; object-fit:contain; display:block; transition:transform .6s cubic-bezier(.2,.8,.2,1); }
.pv-img:hover img, .pv-img:focus-visible img { transform:scale(1.04); }
.pv-img:focus-visible { outline:1px solid var(--logo); outline-offset:-2px; }
.pv-img.ph { cursor:default; flex-direction:column; gap:6px; font:400 10px/1.4 -apple-system,"Helvetica Neue",Arial,sans-serif; letter-spacing:.14em; text-transform:uppercase; color:rgba(245,245,245,.4); text-align:center; padding:10px; }
.pv-img.ph b { font-size:20px; font-weight:300; letter-spacing:.06em; color:rgba(245,245,245,.7); }
.pv-img.load { cursor:default; background:linear-gradient(100deg,#131315 30%,#1b1b1e 50%,#131315 70%) 0 0/300% 100%; animation:shim 1.2s linear infinite; }
@keyframes shim { to { background-position:-300% 0; } }
.pv-badge { position:absolute; left:8px; bottom:8px; padding:4px 7px; border-radius:6px; font:400 9px/1 -apple-system,"Helvetica Neue",Arial,sans-serif; letter-spacing:.16em; text-transform:uppercase; background:rgba(10,10,10,.72); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); color:rgba(245,245,245,.85); }
.pv-meta { display:block; padding:10px 12px 12px; }
.pv-meta b { display:block; font-weight:400; font-size:12.5px; color:rgba(245,245,245,.85); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pv-meta small { display:block; margin-top:3px; font-size:11px; opacity:.45; }
.pv .pv-x { position:absolute; top:8px; right:8px; width:26px; height:26px; background:rgba(10,10,10,.7); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); font-size:15px; }
.pvnote { display:flex; align-items:flex-start; gap:9px; margin-top:12px; font-size:12.5px; line-height:1.5; color:rgba(245,245,245,.5); animation:tin .5s cubic-bezier(.2,.8,.2,1) both; }
.pvnote svg { flex:none; width:15px; height:15px; margin-top:1px; fill:none; stroke:currentColor; stroke-width:1.1; stroke-linecap:round; opacity:.8; }
.files li { display:flex; align-items:center; gap:10px; padding:8px 8px 8px 14px; font-size:12.5px; color:rgba(245,245,245,.8); background:rgba(245,245,245,.05); border-radius:999px; animation:tin .4s cubic-bezier(.2,.8,.2,1) both; }
.files li small { opacity:.45; font-size:11px; }
.files button { width:22px; height:22px; border-radius:50%; border:0; background:rgba(245,245,245,.08); color:var(--logo); cursor:pointer; font-size:14px; line-height:1; transition:background .25s, transform .3s; }
.files button:hover, .files button:focus-visible { background:rgba(245,245,245,.22); transform:rotate(90deg); outline:none; }
.ferr { min-height:18px; margin-top:8px; font-size:12.5px; color:#ff8a8a; }
.fgrid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px 16px; margin-top:14px; }
.fl { display:block; }
.fl.w2 { grid-column:1 / -1; }
.fl > span { display:block; margin-bottom:8px; font:400 10px/1 -apple-system,"Helvetica Neue",Arial,sans-serif; letter-spacing:.2em; text-transform:uppercase; color:rgba(245,245,245,.45); }
.order input[type=text], .order input[type=number], .order select, .order textarea {
  width:100%; color:var(--logo); font:14.5px/1.4 -apple-system,"Helvetica Neue",Arial,sans-serif; background:rgba(245,245,245,.035);
  border:1px solid rgba(245,245,245,.12); border-radius:10px; padding:13px 14px; transition:border-color .3s, background .3s;
}
.order select { appearance:none; -webkit-appearance:none; padding-right:36px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f5f5f5' stroke-opacity='.6' stroke-width='1.2'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; }
.order select option { background:#141414; color:var(--logo); }
/* Красивый селект: настоящий <select> остаётся скрытым (значение и форма), поверх — свой список */
.cs { position:relative; }
.cs > select { position:absolute; inset:0; width:100%; height:100%; opacity:0; pointer-events:none; }
.cs-btn {
  display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; text-align:left; cursor:pointer;
  color:var(--logo); font:14.5px/1.4 -apple-system,"Helvetica Neue",Arial,sans-serif; background:rgba(245,245,245,.035);
  border:1px solid rgba(245,245,245,.12); border-radius:10px; padding:13px 14px; transition:border-color .3s, background .3s;
}
.cs-btn.ph .cs-val { color:rgba(245,245,245,.35); }
.cs-btn:hover { border-color:rgba(245,245,245,.3); }
.cs-btn:focus-visible, .cs.open .cs-btn { outline:none; border-color:rgba(245,245,245,.55); background:rgba(245,245,245,.06); }
.cs-btn svg { flex:none; width:10px; height:6px; opacity:.6; transition:transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.cs.open .cs-btn svg { transform:rotate(180deg); opacity:1; }
.cs-list {
  position:absolute; z-index:30; left:0; right:0; top:calc(100% + 8px); max-height:min(320px,60dvh); overflow:auto; padding:6px; list-style:none;
  background:rgba(20,20,23,.94); -webkit-backdrop-filter:blur(22px) saturate(1.3); backdrop-filter:blur(22px) saturate(1.3);
  border:1px solid rgba(245,245,245,.14); border-radius:14px; box-shadow:0 26px 60px -18px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
  opacity:0; visibility:hidden; transform:translateY(-8px) scale(.97); transform-origin:top center;
  transition:opacity .25s, transform .4s cubic-bezier(.2,.9,.25,1), visibility 0s .4s; scrollbar-width:thin; scrollbar-color:rgba(245,245,245,.25) transparent;
}
.cs.open .cs-list { opacity:1; visibility:visible; transform:none; transition-delay:0s; }
.cs-list li {
  position:relative; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 12px; border-radius:9px; cursor:pointer;
  font:14px/1.3 -apple-system,"Helvetica Neue",Arial,sans-serif; color:rgba(245,245,245,.72); transition:background .2s, color .2s, padding-left .3s cubic-bezier(.2,.8,.2,1);
}
.cs-list li.act { background:rgba(245,245,245,.08); color:var(--logo); padding-left:16px; }
.cs-list li[aria-selected=true] { color:var(--logo); }
.cs-list li svg { width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; opacity:0; transform:scale(.6); transition:opacity .25s, transform .35s cubic-bezier(.2,.8,.2,1); }
.cs-list li[aria-selected=true] svg { opacity:.9; transform:none; }
@media (prefers-reduced-motion:reduce) { .cs-list, .cs-btn svg, .cs-list li { transition:none; } }
.order textarea { min-height:96px; resize:vertical; }
.order input:focus, .order select:focus, .order textarea:focus { outline:none; border-color:rgba(245,245,245,.55); background:rgba(245,245,245,.06); }
.order input::placeholder, .order textarea::placeholder { color:rgba(245,245,245,.25); }
.order .consent { margin:20px 0 14px; font-size:12.5px; }
.order .msg { margin-bottom:10px; }
.odone { text-align:center; padding-top:30px; }
.odone h2 { font-size:26px; font-weight:300; letter-spacing:-.02em; margin-bottom:10px; }
.odone p { opacity:.55; margin-bottom:22px; font-size:14.5px; }
@media (max-width:700px) { .fgrid { grid-template-columns:1fr 1fr; } }
@media (max-width:460px) { .fgrid { grid-template-columns:1fr; } }

/* значки-ссылки .ct (подпись выезжает при наведении) */
.ct {
  position:relative; display:inline-flex; flex-direction:row-reverse; align-items:center; padding:10px 4px; cursor:pointer; text-decoration:none;
  font:400 10.5px/1 -apple-system,"Helvetica Neue",Arial,sans-serif; letter-spacing:.2em; text-transform:uppercase;
  color:var(--logo); background:none; border:0; opacity:.6; transition:opacity .3s;
}
.ct svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.1; stroke-linecap:round; stroke-linejoin:round; transition:transform .5s cubic-bezier(.2,.8,.2,1); }
.ct::after { content:""; position:absolute; left:0; right:0; bottom:2px; height:1px; background:var(--logo); transform:scaleX(0); transform-origin:left; transition:transform .55s cubic-bezier(.2,.8,.2,1); }
.ct span { max-width:0; margin-right:0; opacity:0; overflow:hidden; white-space:nowrap;
  transition:max-width .6s cubic-bezier(.2,.8,.2,1), margin .6s cubic-bezier(.2,.8,.2,1), opacity .35s; }     /* подпись выезжает влево от значка, значок стоит на месте */
.ct:hover span, .ct:focus-visible span { max-width:190px; margin-right:11px; opacity:1; }
.ct:hover, .ct:focus-visible { opacity:1; outline:none; }
.ct:hover::after, .ct:focus-visible::after { transform:scaleX(1); }
.ct:hover svg, .ct:focus-visible svg { transform:translateY(-2px) rotate(-6deg); }
.ct:active { opacity:.7; }

/* стеклянное окно */
.glass-old {
  width:min(94vw,600px); max-height:92dvh; overflow:auto; margin:auto; padding:28px 30px 24px; color:var(--logo);
  border:1px solid rgba(245,245,245,.14); border-radius:26px;
  background:rgba(22,22,24,.68); -webkit-backdrop-filter:blur(28px) saturate(1.4); backdrop-filter:blur(28px) saturate(1.4);
  box-shadow:0 40px 90px -20px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.07);
  font-family:-apple-system,"Helvetica Neue",Arial,sans-serif; will-change:transform;
}
.glass-old::backdrop { background:rgba(6,6,8,.45); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }

/* компактная зона загрузки (окно письма) */
.dz.sm { flex-direction:row; flex-wrap:wrap; justify-content:center; gap:8px 12px; padding:16px 18px; border-radius:14px; }
.dz.sm small { margin:0; width:100%; }

@media (max-width:560px) { .ct span { display:none; } .ct svg { width:20px; height:20px; } .ct { padding:10px 6px; } }

/* кнопка-ссылка .cta */
.cta {
  position:relative; display:inline-flex; align-items:center; gap:14px;
  font:400 12px/1 -apple-system,"Helvetica Neue",Arial,sans-serif;
  letter-spacing:.24em; text-transform:uppercase;
  color:var(--logo); background:none; cursor:pointer; border:0; padding:14px 2px;
}
.cta::before, .cta::after { content:""; position:absolute; left:0; bottom:0; height:1px; }
.cta::before { right:0; background:rgba(245,245,245,.28); }
.cta::after { width:100%; background:var(--logo); transform:scaleX(0); transform-origin:left; transition:transform .6s cubic-bezier(.2,.8,.2,1); }
.cta .ar { width:26px; height:10px; overflow:visible; transition:transform .5s cubic-bezier(.2,.8,.2,1); }
.cta:hover::after, .cta:focus-visible::after { transform:scaleX(1); }
.cta:hover .ar, .cta:focus-visible .ar { transform:translateX(8px); }
.cta:focus-visible { outline:none; }
.cta:active { opacity:.7; }

/* диалог и простая форма (заявка): поля, согласие, ловушка для ботов, сообщения */
dialog {
  background:#111; color:var(--logo); border:1px solid rgba(245,245,245,.25);
  width:min(92vw, 460px); max-height:92dvh; overflow:auto; padding:28px;
  font:15px/1.45 -apple-system,"Helvetica Neue",Arial,sans-serif;
}
dialog::backdrop { background:rgba(0,0,0,.7); }
dialog h2 { font-size:18px; font-weight:500; margin-bottom:18px; letter-spacing:.02em; }
.row { display:block; margin-bottom:14px; }
.row > span { display:block; font-size:12px; opacity:.6; margin-bottom:6px; letter-spacing:.06em; text-transform:uppercase; }
input[type=text], select, textarea {
  width:100%; background:#0a0a0a; color:var(--logo); font:inherit;
  border:1px solid rgba(245,245,245,.25); padding:11px 12px; border-radius:0;
}
textarea { min-height:110px; resize:vertical; }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--logo); }
.hp { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.consent { display:flex; gap:10px; align-items:flex-start; font-size:12.5px; opacity:.75; margin:4px 0 18px; }
.consent input { margin-top:3px; }
.actions { display:flex; gap:12px; justify-content:flex-end; }
.actions button { font:inherit; font-size:13px; letter-spacing:.1em; text-transform:uppercase; padding:12px 20px; cursor:pointer; background:none; color:var(--logo); border:1px solid rgba(245,245,245,.35); }
.actions button[type=submit] { background:var(--logo); color:#0a0a0a; border-color:var(--logo); }
.actions button:disabled { opacity:.5; cursor:default; }
.msg { min-height:20px; font-size:13.5px; margin-bottom:12px; }
.msg.err { color:#ff8a8a; }
.done { text-align:center; padding:12px 0 4px; }
.done p { opacity:.75; margin:10px 0 22px; }
.odone:focus { outline:none; }

/* плашка про cookie (assets/ui.js) — кнопки в языке .cta: капс, тонкая линия, стрелка */
.ck {
  position:fixed; z-index:50; left:16px; right:16px; bottom:16px; max-width:720px; margin:0 auto;
  display:flex; align-items:center; gap:28px; padding:18px 24px;
  background:linear-gradient(180deg, rgba(26,27,30,.94), rgba(16,16,18,.94)); border:1px solid rgba(245,245,245,.12); border-radius:16px;
  -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px);
  box-shadow:0 1px 0 rgba(255,255,255,.06) inset, 0 16px 48px rgba(0,0,0,.55);
  color:var(--logo); font-family:-apple-system,"Helvetica Neue",Arial,sans-serif;
  opacity:0; transform:translateY(14px); transition:opacity .4s, transform .5s cubic-bezier(.2,.8,.2,1);
}
.ck.on { opacity:1; transform:none; }
.ck p { flex:1; font-size:13px; line-height:1.5; opacity:.7; }
.ck p a { color:var(--logo); text-decoration:underline; text-decoration-color:rgba(245,245,245,.35); text-underline-offset:3px; transition:text-decoration-color .3s; }
.ck p a:hover { text-decoration-color:var(--logo); }
.ck-b { flex:none; display:flex; flex-direction:column; align-items:flex-end; gap:14px; }
.ck button {
  position:relative; display:inline-flex; align-items:center; gap:12px; padding:6px 0 8px; border:0; background:none; cursor:pointer;
  color:var(--logo); font:inherit; font-size:11px; letter-spacing:.2em; text-transform:uppercase; white-space:nowrap;
}
.ck button::before, .ck button::after { content:""; position:absolute; left:0; bottom:0; height:1px; }
.ck button::before { right:0; background:rgba(245,245,245,.24); }
.ck button::after { width:100%; background:var(--logo); transform:scaleX(0); transform-origin:left; transition:transform .6s cubic-bezier(.2,.8,.2,1); }
.ck button:hover::after, .ck button:focus-visible::after { transform:scaleX(1); }
.ck button:focus-visible { outline:none; }
.ck button:active { opacity:.7; }
.ck .ck-ar { width:26px; height:10px; overflow:visible; transition:transform .5s cubic-bezier(.2,.8,.2,1); }
.ck .ck-yes:hover .ck-ar, .ck .ck-yes:focus-visible .ck-ar { transform:translateX(8px); }
.ck .ck-no { opacity:.5; transition:opacity .3s; }
.ck .ck-no:hover, .ck .ck-no:focus-visible { opacity:1; }
@media (max-width:560px) {
  .ck { flex-direction:column; align-items:stretch; gap:16px; padding:18px 20px; }
  .ck-b { flex-direction:row; justify-content:space-between; align-items:center; gap:16px; }
}
@media (prefers-reduced-motion:reduce) { .ck, .ck button::after, .ck .ck-ar { transition:none; } }

/* ссылки внизу страницы (assets/ui.js) */
.bl-foot { display:flex; flex-wrap:wrap; justify-content:center; gap:6px 24px; margin-top:auto; padding:32px 16px 8px;
  font-family:-apple-system,"Helvetica Neue",Arial,sans-serif; font-size:11px; letter-spacing:.16em; text-transform:uppercase; }
.bl-foot a, .bl-foot button { color:var(--logo); opacity:.4; background:none; border:0; padding:0; font:inherit; letter-spacing:inherit; text-transform:inherit; cursor:pointer; text-decoration:none; transition:opacity .25s; }
.bl-foot a:hover, .bl-foot button:hover, .bl-foot a:focus-visible, .bl-foot button:focus-visible { opacity:.9; outline:none; text-decoration:underline; text-underline-offset:3px; }

.consent a { color:inherit; text-decoration:underline; text-decoration-color:rgba(245,245,245,.4); text-underline-offset:2px; }

/* только для скринридеров и поисковиков: заголовок страницы */
.vh { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* выбор материала в форме заказа (index.html): вкладки в языке меню — капс, линия у активной */
.otabs { display:flex; flex-wrap:wrap; gap:6px 28px; margin:6px 0 22px; border-bottom:1px solid rgba(245,245,245,.12); }
.otab { position:relative; padding:10px 0 12px; background:none; border:0; cursor:pointer; color:var(--logo); opacity:.5; font:inherit; font-size:12px; letter-spacing:.18em; text-transform:uppercase; transition:opacity .3s; }
.otab i { margin-left:8px; font-style:normal; font-size:9px; letter-spacing:.14em; opacity:.6; }
.otab::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px; background:var(--logo); transform:scaleX(0); transform-origin:left; transition:transform .5s cubic-bezier(.2,.8,.2,1); }
.otab:hover, .otab:focus-visible { opacity:.9; outline:none; }
.otab.on { opacity:1; } .otab.on::after { transform:scaleX(1); }
.ocoming { padding:34px 0 10px; color:var(--logo); font-family:-apple-system,"Helvetica Neue",Arial,sans-serif; }
.ocoming h3 { font-weight:300; font-size:24px; letter-spacing:-.01em; }
.ocoming p { margin:10px 0 24px; max-width:520px; font-size:14px; line-height:1.55; opacity:.65; }
@media (prefers-reduced-motion:reduce) { .otab, .otab::after { transition:none; } }
@media (max-width:560px) { .otabs { flex-wrap:nowrap; justify-content:space-between; gap:0 12px; } .otab { font-size:11px; letter-spacing:.12em; white-space:nowrap; } .otab i { margin-left:5px; font-size:8px; } }
.lay { display:flex; gap:8px; margin:4px 0 14px; }
.lay label { flex:1; position:relative; cursor:pointer; }
.lay input { position:absolute; opacity:0; inset:0; margin:0; cursor:pointer; }
.lay span { display:block; padding:12px 14px; text-align:center; border:1px solid rgba(245,245,245,.22); border-radius:10px; font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:rgba(245,245,245,.55); transition:color .3s, border-color .3s, background .3s; }
.lay input:checked + span { color:var(--logo); border-color:rgba(245,245,245,.7); background:rgba(245,245,245,.06); }
.lay input:focus-visible + span { outline:1px solid var(--logo); outline-offset:2px; }
.lay-note { margin:0 0 18px; padding:14px 16px; border:1px dashed rgba(245,245,245,.22); border-radius:10px; font-size:14px; line-height:1.55; color:rgba(245,245,245,.7); }
#layhave[hidden], .lay-note[hidden] { display:none; }
.fhint { display:block; margin-top:6px; font-size:11.5px; letter-spacing:.02em; color:rgba(245,245,245,.5); }
.ocalm { margin:6px 0 18px; font-size:13.5px; line-height:1.55; color:rgba(245,245,245,.6); }
@media (max-width:460px) { .lay span { padding:12px 8px; font-size:11px; letter-spacing:.1em; } }
.order input[type=number] { -moz-appearance:textfield; appearance:textfield; }
.order input[type=number]::-webkit-outer-spin-button, .order input[type=number]::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
/* Счётчик количества: один контрол «− число +» в рамке поля, штрихи без рамок, тихий «вайп» по наведению */
.qtyw, .fl > .qtyw {
  display:flex; align-items:stretch; width:100%; margin:0; overflow:hidden; isolation:isolate; font:inherit; letter-spacing:0; text-transform:none; color:var(--logo);
  background:rgba(245,245,245,.035); border:1px solid rgba(245,245,245,.12); border-radius:10px; transition:border-color .3s, background .3s;
}
.qtyw:hover { border-color:rgba(245,245,245,.3); }
.qtyw:focus-within { border-color:rgba(245,245,245,.55); background:rgba(245,245,245,.06); }
.order .qtyw input[type=number] { flex:1 1 0; min-width:0; text-align:center; padding-left:6px; padding-right:6px; background:none; border:0; border-radius:0; }
.order .qtyw input[type=number]:focus { background:none; }
.stp {
  position:relative; flex:none; width:44px; min-height:44px; padding:0; margin:0; border:0; background:none; color:var(--logo); cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; -webkit-tap-highlight-color:transparent; touch-action:manipulation; user-select:none;
}
.stp[data-d="-1"] { border-right:1px solid rgba(245,245,245,.12); }
.stp[data-d="1"] { border-left:1px solid rgba(245,245,245,.12); }
.stp::before { content:""; position:absolute; inset:0; z-index:-1; background:rgba(245,245,245,.08); transform:translateY(101%); transition:transform .5s cubic-bezier(.2,.8,.2,1); }
.stp svg { width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; opacity:.5; transition:opacity .3s, transform .3s cubic-bezier(.2,.8,.2,1); }
.stp:hover::before, .stp:focus-visible::before { transform:none; }
.stp:hover svg, .stp:focus-visible svg { opacity:1; }
.stp:active svg { transform:scale(.82); }
.stp:focus-visible { outline:1px solid var(--logo); outline-offset:-5px; border-radius:8px; }
.stp[aria-disabled=true] svg { opacity:.18; }
.stp[aria-disabled=true]::before { display:none; }
@media (prefers-reduced-motion:reduce) { .qtyw, .stp::before, .stp svg { transition:none; } }

/* Чекбокс согласия: свой квадрат в языке полей, заливка выезжает снизу, галочка прорисовывается */
.consent { cursor:pointer; }
.consent input[type=checkbox] {
  appearance:none; -webkit-appearance:none; flex:none; position:relative; width:19px; height:19px; margin:1px 0 0; padding:0; overflow:hidden; isolation:isolate;
  background:rgba(245,245,245,.035); border:1px solid rgba(245,245,245,.35); border-radius:5px; cursor:pointer; -webkit-tap-highlight-color:transparent;
  transition:border-color .3s, background .3s;
}
.consent input[type=checkbox]::before { content:""; position:absolute; inset:0; z-index:-1; background:var(--logo); transform:translateY(101%); transition:transform .45s cubic-bezier(.2,.8,.2,1); }
.consent input[type=checkbox]::after {
  content:""; position:absolute; inset:0; background:no-repeat center/11px 9px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 9'%3E%3Cpath d='M1.5 4.6l2.7 2.7L9.5 1.6' fill='none' stroke='%230a0a0a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  clip-path:inset(0 100% 0 0); transition:clip-path .2s;
}
.consent:hover input[type=checkbox] { border-color:rgba(245,245,245,.6); }
.consent input[type=checkbox]:focus { outline:none; }
.consent input[type=checkbox]:focus-visible { outline:1px solid var(--logo); outline-offset:3px; border-color:rgba(245,245,245,.6); }
.consent input[type=checkbox]:checked { border-color:var(--logo); background:var(--logo); }
.consent input[type=checkbox]:checked::before { transform:none; }
.consent input[type=checkbox]:checked::after { clip-path:inset(0); transition:clip-path .4s cubic-bezier(.2,.8,.2,1) .18s; }
.consent input[type=checkbox]:active { transform:scale(.92); }
@media (prefers-reduced-motion:reduce) { .consent input[type=checkbox], .consent input[type=checkbox]::before, .consent input[type=checkbox]::after { transition:none; } }
.consent input[type=checkbox] { margin:0; flex:none; }
.consent > span { line-height:19px; }
/* После неудачной отправки (.vfail): пустые обязательные — .bad (янтарь), заполненные — .ok (обычный вид),
   остальное мягко приглушается; поле в фокусе и открытый селект видны целиком всегда.
   Общее для формы заказа (.order) и «Написать нам» (#mform; .c-mform — её копия на время перелистывания книги) */
.order .fgrid > .fl, .order .lay, .order #layhave, .order .lay-note, .order .consent, .order .ocalm, :is(#mform,.c-mform) :is(.fl,.consent) { transition:opacity .3s; }
:is(#mform,.c-mform) .dz { transition:border-color .3s, background .3s, transform .4s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.order.vfail .fgrid > .fl:not(.bad):not(.ok):not(:focus-within), .order.vfail .lay:not(:focus-within), .order.vfail #layhave:not(.ok):not(:focus-within), .order.vfail .lay-note, .order.vfail .consent:not(.bad):not(.ok):not(:focus-within), .order.vfail .ocalm,
:is(#mform,.c-mform).vfail :is(.fl,.consent,.dz):not(.bad):not(.ok):not(:focus-within) { opacity:.45; }
.order.vfail .fgrid > .fl:has(.cs.open), :is(#mform,.c-mform).vfail .fl:has(.cs.open) { opacity:1; }
.order.vfail .fl.ok > span:first-child, :is(#mform,.c-mform).vfail .fl.ok > span:first-child { color:rgba(245,245,245,.7); }
.order .fl.bad > span, .order .consent.bad, :is(#mform,.c-mform) .fl.bad > span, :is(#mform,.c-mform) .consent.bad { color:#f3d79f; opacity:1; }
.order .fgrid input, .order .fgrid textarea, .order .cs-btn, .order .qtyw, :is(#mform,.c-mform) .cs-btn { transition-property:border-color, background, box-shadow; transition-duration:.3s; }
.order .fl.bad input, .order .fl.bad textarea, .order .fl.bad .cs-btn, .order .fl.bad .qtyw, :is(#mform,.c-mform) .fl.bad :is(input,textarea,.cs-btn) { border-color:rgba(240,201,135,.9); box-shadow:0 0 0 3px rgba(240,201,135,.14); }
.order .fl.bad .qtyw { border-radius:10px; }
.order .consent.bad input[type=checkbox], :is(#mform,.c-mform) .consent.bad input[type=checkbox] { border-color:rgba(240,201,135,.95); box-shadow:0 0 0 3px rgba(240,201,135,.16); }
@media (prefers-reduced-motion:reduce) { .order .fgrid > .fl, .order .lay, .order #layhave, .order .lay-note, .order .consent, .order .ocalm, :is(#mform,.c-mform) :is(.fl,.consent,.dz) { transition:none; } }
.msg.hint { color:#f3d79f; }

/* ---------- мобильная версия: зоны нажатия, шрифты, без горизонтального сдвига ---------- */
@media (max-width: 600px) {
  html, body { overflow-x: clip; }
  .drop, .v1-floor-turn { max-width: 100%; box-sizing: border-box; }
  /* зоны нажатия не меньше 44 px */
  .ct { min-width:44px; min-height:44px; }
  .ct-order { min-height:44px; padding-left:14px; padding-right:14px; }
  [aria-label^="Слайд"] { min-height:44px; }   /* ширину не раздуваем: 5 точек + 2 стрелки должны помещаться в 375 px */
  header a, nav a, footer a, .pg-foot a, .pg-crumbs a { display:inline-flex; align-items:center; min-height:44px; padding-top:0; padding-bottom:0; }
  .pg-btn, .ck button, [class^="ck-"], .ck .ck-no, .ck .ck-yes { min-height:44px; }
  footer button, .linkbtn, [data-cookie-settings] { min-height:44px; display:inline-flex; align-items:center; }
  label.hp { min-height:0; }
  /* минимальный размер текста 12 px */
  small, .v1-idx, .v1-cap, .v1-step, .v1-gn, .v1-kicker, .v1-fin-l, .v1-vec-tag, .v1-serial, .vw5-n, .vw5-of, .v1-sum-c, .fhint, .ct-order, .top a, .pg-crumbs, .pg-foot, footer { font-size: max(12px, 1em); }
  .v1-idx, .v1-cap, .v1-step, .v1-gn, .v1-kicker, .v1-fin-l, .v1-vec-tag, .v1-serial, .vw5-n, .vw5-of, .v1-sum-c, .fhint, small, .ct-order { font-size:12px !important; }
  /* плашка cookie компактнее */
  .ck { padding:12px 14px; max-height:42vh; overflow:auto; }
  .ck p { margin:0 0 8px; font-size:13px; line-height:1.4; }
  .ck button { padding:0 14px; }
  .menu a, .menu .top, .drop a, .svnav a, .bl-foot a, .bl-foot button, .lay label span, .fl > span, .v1-hud span, .ck-b button, .pg-btn, dt, .pg-foot a { font-size:12.5px !important; }
  .menu a, .drop a, .svnav a, .bl-foot a, .bl-foot button, .ck-b button { min-height:44px; display:inline-flex; align-items:center; }
  .lay label, .v1-sg, .v1-vw, [class*="slide"] button, button[aria-label="Назад"], button[aria-label="Вперёд"] { min-height:44px; }
  button[aria-label="Назад"], button[aria-label="Вперёд"] { min-width:44px; }
  .v1-sg, label.v1-sg, .v1-vw, label.v1-vw { min-height:44px !important; min-width:44px !important; }
  .pg a, main a, dd a { font-size:max(12px, 1em); }
  .pg-nav a, .pg-top a { font-size:12.5px !important; min-height:44px; display:inline-flex; align-items:center; }
}
