/* Size selection: introduction on the right, tactile books on the left. */
body.screen-size,body.screen-size .app-main { height:auto; overflow:auto; }
.screen-size .sz { width:min(1240px,100%); min-height:calc(100dvh - var(--topbar-h,70px)); margin:auto; padding:56px 32px; display:grid; grid-template-columns:minmax(260px,.8fr) minmax(0,1.45fr); align-items:center; gap:clamp(28px,5vw,72px); }
.screen-size .sz__head { text-align:right; min-width:0; }
.screen-size .sz__title { margin:16px 0 22px; font-family:var(--font-title); font-size:clamp(42px,4.8vw,66px); line-height:1.06; white-space:normal; color:#172b49; }
.screen-size .sz__title em { font-style:normal; color:#f08170; }
.screen-size .sz--newborn .sz__title em { color:#967151; }
.sz__sub { color:#52657b; font-size:17px; margin:10px 0; line-height:1.7; }
.sz__sub--question { color:#172b49; font-weight:700; font-size:21px; }
.sz__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; min-width:0; }
.sz-card { position:relative; min-width:0; padding:30px 18px 22px; display:flex; flex-direction:column; background:#ffffffbf; border:1px solid #e2dcd4; border-radius:24px; cursor:pointer; text-align:center; transition:transform .2s,box-shadow .2s; }
.sz-card:hover { transform:translateY(-6px); box-shadow:0 22px 45px #172b4914; }
.sz-card.is-active { border-color:#f08170; box-shadow:0 14px 40px #a9633412; }
.sz-card input { position:absolute; opacity:0; width:1px; height:1px; }
.sz-card:focus-visible,.sz-card:focus-within { outline:3px solid #23728c; outline-offset:4px; }
.sz-card__badge { position:absolute; top:-12px; left:18px; padding:6px 12px; border-radius:30px; background:#f9e2d6; color:#172b49; font-size:12px; font-weight:700; }
.sz-card__stage { position:relative; height:250px; display:flex; align-items:flex-end; justify-content:center; padding:10px 0 26px; }
.sz-card__book { width:calc(var(--book-width) * 6.5px); max-width:90%; position:relative; display:block; flex:none; padding:0; container-type:inline-size; border-radius:7px 3px 3px 7px; background:var(--size-cover,#eee); box-shadow:0 22px 30px -15px #29322d77; }
.sz-card__book--newborn { isolation:isolate; overflow:hidden; color:var(--size-ink); }
.sz-card__book--newborn small { position:absolute; top:14%; left:10%; right:10%; font:400 6cqw/1.3 'Gloock',serif; }
.sz-card__dest { position:absolute; bottom:12%; left:8%; right:8%; font:400 13cqw/1 'Gloock',serif; color:inherit; }
.sz-card__body { display:grid; gap:8px; }
.sz-card__name { font-size:20px; color:#172b49; line-height:1.3; }
.sz-card__dims { font-size:14px; color:#64758a; }
.sz-card__offer { display:grid; gap:6px; background:#fbf0e9; border-radius:12px; padding:13px 8px; margin-top:7px; }
.sz-card__price { color:#52657b; font-size:15px; }
.sz-card__price b { color:#172b49; font-size:23px; white-space:nowrap; }
.sz-card__offer small { font-size:12px; line-height:1.5; color:#52657b; }
.sz-card__hint { font-size:13px; color:#64758a; line-height:1.5; }
.sz-card__continue { font-size:16px; font-weight:700; color:#172b49; margin-top:8px; }
.sz-card__check,.sz-card__shadow,.sz-card__motif,.sz-card__year { display:none; }
.sz__grid.is-submitting { pointer-events:none; opacity:.6; }
@media(max-width:900px) {
 .screen-size .sz { grid-template-columns:1fr; max-width:760px; min-height:0; gap:32px; padding:34px 24px 48px; }
 .screen-size .sz__head { text-align:center; max-width:560px; margin:auto; }
 .screen-size .sz__title { font-size:46px; margin:12px 0; }
}
@media(max-width:540px) {
 .screen-size .sz { padding:26px 16px 40px; gap:26px; }
 .screen-size .sz__title { font-size:38px; }
 .sz__sub { font-size:15px; margin:6px 0; }
 .sz__sub--question { font-size:18px; }
 .sz__grid { grid-template-columns:1fr; gap:20px; }
 .sz-card { display:grid; grid-template-columns:105px minmax(0,1fr); align-items:center; gap:18px; padding:20px 16px; text-align:right; }
 .sz-card__stage { height:auto; min-height:154px; align-items:center; padding:8px 0; }
 .sz-card__book { width:calc(var(--book-width) * 4.5px); max-width:94%; }
 .sz-card__name { font-size:19px; }
 .sz-card__body { gap:5px; }
 .sz-card__price { font-size:13px; }
 .sz-card__price b { font-size:20px; }
 .sz-card__offer { padding:9px; margin:3px 0; }
 .sz-card__continue { font-size:14px; margin-top:3px; }
}
@media(prefers-reduced-motion:reduce) { .sz-card { transition:none; }.sz-card:hover { transform:none; } }
.sz-card .st-cover { position:absolute; inset:0; overflow:hidden; border-radius:inherit; --stw:100cqw; }
.sz-card .stc-el { position:absolute; display:block; font-style:normal; text-align:center; line-height:1; }
.sz-card .stc-el--ill svg,.sz-card .stc-el--ill img { display:block; width:100%; height:auto; }
.sz-card .stc-el--ill.is-cover-safe { left:15%; top:35%; width:70%; height:42%; }
.sz-card .stc-el--ill.is-cover-safe svg,.sz-card .stc-el--ill.is-cover-safe img { width:100%; height:100%; object-fit:contain; }
/* Give every preview element a bounded region in both book formats. */
.sz-card .stc-el--title { left:50%!important; top:14%!important; transform:translate(-50%,-50%)!important; max-width:84%!important; width:84%!important; font-size:24cqw!important; line-height:1!important; }
.sz-card .stc-el--ill,.sz-card .stc-el--ill.is-cover-safe { left:14%!important; top:31%!important; width:72%!important; height:53%!important; transform:none!important; display:grid; place-items:center; }
.sz-card .stc-el--ill svg,.sz-card .stc-el--ill img { width:100%; height:100%; object-fit:contain; }


/* Separate flat layers keep the cover above the paper in every compositor. */
.sz-card__stage { perspective:1100px; }
.sz-card__book { isolation:isolate; transform:none; transform-style:flat; background:var(--size-cover,#d5e7ed); border-radius:6px 3px 3px 6px; box-shadow:-5px 5px 0 #d6d0c5,0 20px 24px -12px #25314355; }
.sz-card__book::before { content:''; position:absolute; z-index:0; inset:3px -2px -5px -6px; border-radius:5px 2px 2px 5px; background:var(--size-cover,#d5e7ed); box-shadow:0 1px 2px #3b302a40; }
.sz-card__pages { position:absolute; z-index:1; inset:3px 2px -2px -4px; border-radius:5px 1px 2px 5px; background:linear-gradient(90deg,#ddd6c8,#fffdf8 8%,#f7f3e9 83%,#c3b7a0); box-shadow:inset 0 -5px 0 #e5dfd4,-1px 1px 2px #76685333; }
.sz-card__pages::before { content:''; position:absolute; inset:0; border-radius:inherit; background:repeating-linear-gradient(0deg,transparent 0 2px,#88796026 2px 2.6px); border-left:1px solid #c7bfae; }
.sz-card__pages::after { content:''; position:absolute; inset:1px 0 5px 4px; border-radius:4px 1px 1px 4px; background:linear-gradient(90deg,#fffdf8,#faf7ef 79%,#d1c5b1); box-shadow:-2px 1px 1px #897b6330; }
.sz-card__book > .st-cover,.sz-card__book > .nb-cover,.sz-card__book > .sz-card__front { z-index:3; transform-origin:right center; transform:perspective(1000px) rotateY(0deg); transition:transform .8s cubic-bezier(.22,.75,.25,1),box-shadow .8s; backface-visibility:visible; box-shadow:-1px 2px 3px #172b4933; }
.sz-card__book > .st-cover::after,.sz-card__book > .nb-cover::after { content:''; position:absolute; inset:0 0 0 auto; width:9%; pointer-events:none; background:linear-gradient(90deg,transparent,#172b4926 62%,#ffffff55 79%,#172b4914); }
.sz-card:is(:hover,:focus-within) .sz-card__book > .st-cover,.sz-card:is(:hover,:focus-within) .sz-card__book > .nb-cover,.sz-card:is(:hover,:focus-within) .sz-card__book > .sz-card__front { transform:perspective(1000px) rotateY(42deg); box-shadow:-9px 5px 12px #172b4926; }
.sz-card__book--newborn { overflow:visible; }
@media(prefers-reduced-motion:no-preference) {
 .sz-card__book > .st-cover,.sz-card__book > .nb-cover { animation:sizeBookHello 2s ease; }
 .sz-card:nth-child(2) .sz-card__book > .st-cover,.sz-card:nth-child(2) .sz-card__book > .nb-cover { animation-delay:.2s; }
}
@keyframes sizeBookHello { 0%,100% { transform:perspective(1000px) rotateY(0deg); } 45% { transform:perspective(1000px) rotateY(30deg); } }
@media(max-width:540px) {
 .screen-size .sz__title { font-size:46px; }.sz__sub { font-size:17px; }.sz__sub--question { font-size:21px; }
 .sz-card { grid-template-columns:90px minmax(0,1fr); gap:12px; padding:22px 12px; }
 .sz-card__name { font-size:22px; }.sz-card__dims { font-size:15px; }.sz-card__price b { font-size:24px; }
 .sz-card__price,.sz-card__hint { font-size:14px; }.sz-card__continue { font-size:17px; }
}
@media(prefers-reduced-motion:reduce) { .sz-card__book,.sz-card__book > *,.sz-card__pages::before,.sz-card__pages::after { animation:none!important; transition:none!important; transform:none!important; } }


.sz-card__front { position:absolute; inset:0; width:100%; height:100%; border-radius:inherit; }
.sz-card__front--personal .sz-card__dest{top:8%;bottom:auto;font:400 17cqw/1 Monopolitser,sans-serif;text-align:center}
.sz-family-art{position:absolute;left:8%;bottom:6%;width:84%;height:50%;object-fit:contain}
