/* ═════════ Шаблоны-лендинги: обложки ═════════ */
.tpl .page { background: var(--card); }
.tpl-hero { position: relative; min-height: 100svh; overflow: hidden; padding: 0; text-align: center; color: var(--ink); background: var(--bg); }
.tpl-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tpl-hero .kicker { font-family: var(--fb), sans-serif; font-size: 10px; letter-spacing: .42em; text-transform: uppercase; }
.tpl-hero .names { margin: 0; font-weight: 400; line-height: .95; color: var(--accent); }
.tpl-hero .names .amp { display: block; font-size: .42em; margin: .15em 0; color: var(--deco); font-style: italic; }
.typo-caps .tpl-hero .names .amp, .typo-bold .tpl-hero .names .amp { font-size: .5em; }
.ph-empty { width: 100%; height: 100%; background: linear-gradient(135deg, var(--soft), var(--bg)); }
.bw img { filter: grayscale(1) contrast(1.05); }
.sepia { filter: sepia(.6) contrast(.95); }
.hand { font-family: 'Caveat', var(--fs), cursive; }

/* 1. Кино */
.tpl-cinema { display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: #111; }
.tc-bg { position: absolute; inset: -6% 0; }
.tpl-cinema::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.05) 32%, rgba(0,0,0,.12) 60%, rgba(0,0,0,.62)); }
.tpl-cinema > *:not(.tc-bg) { position: relative; z-index: 2; }
.tc-top { padding-top: 64px; color: rgba(255,255,255,.9); }
.tc-mid { padding: 0 24px 96px; }
.tpl-cinema .names { color: #fff; font-size: clamp(54px, 16vw, 80px); text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.tpl-cinema .names .amp { color: rgba(255,255,255,.85); }
.tc-date { margin-top: 18px; font-family: var(--fd), serif; font-size: 18px; letter-spacing: .32em; color: rgba(255,255,255,.92); }
.tc-scroll { position: absolute !important; bottom: 22px; left: 0; right: 0; font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: rgba(255,255,255,.75); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* 2. Обложка журнала */
.tpl-cover { color: #fff; background: #111; display: flex; flex-direction: column; }
.cv-bg { position: absolute; inset: -5% 0; }
.tpl-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 60%, rgba(0,0,0,.55)); }
.tpl-cover > *:not(.cv-bg) { position: relative; z-index: 2; }
.cv-top { display: flex; justify-content: space-between; padding: 18px 20px 0; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; }
.cv-mast { font-family: var(--fs), serif; font-size: clamp(58px, 19vw, 96px); line-height: .82; letter-spacing: -.03em; padding: 6px 14px 0; text-transform: uppercase; color: #fff; }
.cv-mast i { font-style: italic; font-size: .5em; color: var(--deco); padding: 0 .1em; text-transform: none; }
.cv-lines { position: absolute !important; left: 20px; bottom: 56px; text-align: left; max-width: 62%; display: flex; flex-direction: column; gap: 8px; }
.cv-lines b { font-family: var(--fd), serif; font-size: 26px; font-weight: 400; font-style: italic; line-height: 1.1; }
.cv-lines span { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; border-top: 1px solid rgba(255,255,255,.5); padding-top: 6px; }
.cv-badge { position: absolute !important; right: 18px; bottom: 56px; width: 76px; height: 76px; border-radius: 50%; background: var(--deco); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--fd), serif; font-size: 20px; transform: rotate(-10deg); }

/* 3. Огромная типографика */
.tpl-big { padding: 54px 22px 40px; display: flex; flex-direction: column; align-items: center; }
.tb-k { color: var(--muted); margin-bottom: 12px; }
.tb-stack { display: flex; flex-direction: column; align-items: flex-start; width: 100%; font-family: var(--fs), sans-serif; font-weight: 700; line-height: .82; letter-spacing: -.05em; color: var(--accent); }
.tb-stack b { font-size: clamp(110px, 38vw, 190px); }
.tb-date .names, .tb-count .names, .tb-number .names { font-size: clamp(30px, 9vw, 44px); margin-top: 18px; }
.tpl-big .names .amp { display: inline; margin: 0 .2em; }
.tb-photo { width: 100%; aspect-ratio: 4 / 5; margin-top: 26px; overflow: hidden; }
.tb-num { font-family: var(--fs), sans-serif; font-weight: 700; font-size: clamp(120px, 42vw, 210px); line-height: .85; color: var(--accent); letter-spacing: -.05em; }
.tb-unit { font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.tb-date, .tb-count .tb-date { font-size: 13px; letter-spacing: .3em; color: var(--muted); margin-top: 10px; }
.tb-huge { font-family: var(--fs), serif; font-size: clamp(170px, 56vw, 270px); line-height: .8; color: var(--accent); background: linear-gradient(180deg, var(--accent), var(--deco)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tb-number .tb-portrait { width: 70%; aspect-ratio: 3 / 4; margin-top: 22px; border-radius: 999px 999px 0 0; overflow: hidden; }
.tb-names { justify-content: flex-start; }
.tb-names .names { font-size: clamp(62px, 22vw, 110px); text-transform: uppercase; letter-spacing: -.04em; text-align: left; width: 100%; line-height: .86; }
.tb-names .names .amp { display: block; color: var(--deco); font-style: normal; }
.tb-tag { align-self: flex-start; background: var(--deco); color: #fff; padding: 6px 12px; font-weight: 700; margin: 14px 0; }

/* 4. Коллажи */
.tpl-collage { padding: 54px 20px 44px; background: var(--bg); }
.sb-k, .g-k { color: var(--muted); }
.sb { position: relative; height: 380px; margin: 22px 0 10px; }
.pol { position: absolute; width: 58%; background: #fff; padding: 10px 10px 34px; box-shadow: 0 10px 30px rgba(0,0,0,.18); margin: 0; }
.pol img { aspect-ratio: 1; }
.pol figcaption { position: absolute; left: 0; right: 0; bottom: 6px; font-size: 18px; color: #444; }
.pol.p0 { left: 2%; top: 20px; transform: rotate(-7deg); }
.pol.p1 { right: 2%; top: 0; transform: rotate(6deg); z-index: 2; }
.pol.p2 { left: 22%; top: 150px; transform: rotate(-2deg); z-index: 3; }
.cl-scrapbook .pol::before { content: ''; position: absolute; top: -10px; left: 50%; width: 70px; height: 22px; transform: translateX(-50%) rotate(-3deg); background: rgba(240,225,180,.75); }
.tpl-collage .names { font-size: clamp(46px, 14vw, 68px); margin-top: 18px; }
.sb-date, .g-date { margin-top: 10px; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.cl-zine { background: var(--card); }
.z-ph { position: absolute; width: 58%; aspect-ratio: 3 / 4; overflow: hidden; }
.z-ph img { filter: grayscale(1) contrast(1.15); }
.z-ph.z1 { left: -4%; top: 70px; transform: rotate(-6deg); clip-path: polygon(0 3%, 100% 0, 97% 100%, 3% 97%); }
.z-ph.z2 { right: -4%; top: 250px; transform: rotate(5deg); clip-path: polygon(3% 0, 100% 4%, 96% 97%, 0 100%); }
.z-cut { position: relative; z-index: 3; margin-top: 180px !important; }
.z-cut .n1, .z-cut .n2 { display: inline-block; background: var(--ink); color: var(--card); padding: 2px 10px; transform: rotate(-2deg); text-transform: uppercase; }
.z-cut .n2 { background: var(--deco); color: #fff; transform: rotate(2deg); }
.z-tag { position: relative; z-index: 3; display: inline-block; margin-top: 160px; background: #fff; padding: 6px 10px; border: 2px solid var(--ink); }
.z-date { position: relative; z-index: 3; font-weight: 700; margin-top: 10px; }
.g-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 22px; }
.g-grid > div { aspect-ratio: 1; overflow: hidden; }
.tn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 8px; }
.tn figure { margin: 0; background: #fff; padding: 8px 8px 30px; box-shadow: 0 8px 22px rgba(0,0,0,.15); position: relative; }
.tn figure:first-child { transform: rotate(-4deg); } .tn figure:last-child { transform: rotate(4deg); }
.tn img { aspect-ratio: 3 / 4; }
.tn figcaption { position: absolute; bottom: 6px; left: 0; right: 0; font-family: var(--fd), serif; font-size: 18px; color: #444; }
.tl { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; text-align: left; border-left: 1px solid var(--deco); padding-left: 18px; }
.tl-i { position: relative; display: grid; grid-template-columns: 1fr 50px; gap: 10px; align-items: end; }
.tl-i img { aspect-ratio: 16 / 10; }
.tl-i span { font-family: var(--fd), serif; font-size: 30px; color: var(--deco); }
.tl-i::before { content: ''; position: absolute; left: -23px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--deco); }
.cl-album .pol { padding: 8px; } .cl-album .pol figcaption { display: none; }

/* 5. Монограмма */
.tpl-mono { padding: 70px 30px 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg); }
.tm-k { color: var(--muted); }
.crest { position: relative; width: 170px; height: 170px; margin: 26px 0; color: var(--deco); }
.crest svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.crest span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--fd), serif; font-size: 44px; color: var(--accent); letter-spacing: .05em; }
.crest span i { font-size: .5em; font-style: italic; color: var(--deco); padding: 0 4px; }
.mono-big { position: relative; font-size: 150px; line-height: 1; color: var(--accent); height: 190px; width: 220px; margin: 18px 0; }
.mono-big span { position: absolute; } .mono-big span:first-child { left: 10px; top: 0; } .mono-big span:last-child { right: 10px; top: 40px; color: var(--deco); }
.lineart, .kzicon, .tree { width: 86%; color: var(--accent); margin: 26px 0; }
.kzicon { width: 140px; color: var(--deco); }
.tree { width: 70%; color: var(--deco); }
.circ-asset { width: 78%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 22px 0; box-shadow: 0 0 0 1px var(--deco), 0 0 0 10px var(--bg), 0 0 0 11px var(--deco); }
.tpl-mono .names { font-size: clamp(40px, 12vw, 60px); }
.tm-rule { width: 60px; height: 1px; background: var(--deco); margin: 20px 0 14px; }
.tm-date { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.tm-photo { width: 100%; aspect-ratio: 4 / 5; margin-top: 30px; overflow: hidden; }

/* 6. Гигантские имена поверх фото */
.tpl-overlay { padding: 48px 0 40px; display: flex; flex-direction: column; align-items: center; }
.ov-k { color: var(--muted); }
.ov-ph { width: 74%; aspect-ratio: 3 / 4; margin-top: 70px; overflow: hidden; border-radius: 4px; }
.ov-names { position: absolute !important; top: 90px; left: 0; right: 0; z-index: 2; font-size: clamp(76px, 25vw, 124px) !important; line-height: .82 !important; mix-blend-mode: multiply; padding: 0 10px; }
.skin-dark .ov-names, .tpl.dark .ov-names { mix-blend-mode: normal; }
.ov-names .n2 { display: block; padding-top: 2.6em; }
.ov-date { margin-top: 18px; font-size: 13px; letter-spacing: .3em; color: var(--muted); }
.nv-k { color: var(--muted); }
.nv-frame { position: relative; width: 78%; aspect-ratio: 300 / 420; margin: 22px 0 10px; }
.nv-ph { position: absolute; inset: 8% 9% 3%; border-radius: 999px 999px 0 0; overflow: hidden; }
.nv-svg { position: absolute; inset: 0; color: var(--deco); }
.nv-svg svg { width: 100%; height: 100%; }
.ov-nouveau .names { font-size: clamp(46px, 14vw, 66px); }
.nv-date { margin-top: 10px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* 7. Атмосферное фото + текст */
.tpl-still { display: flex; flex-direction: column; background: var(--bg); }
.st-ph { position: relative; height: 64svh; min-height: 380px; overflow: hidden; }
.st-ph img { transform: scale(1.06); }
.st-ph::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, var(--bg)); }
.st-body { position: relative; padding: 0 26px 46px; margin-top: -40px; }
.st-body .kicker { color: var(--deco); }
.tpl-still .names { font-size: clamp(48px, 14vw, 70px); margin: 14px 0 12px; }
.st-date { font-family: var(--fd), serif; font-size: 18px; letter-spacing: .12em; color: var(--ink); }
.skin-dark .tpl-still .st-date, .tpl.dark .tpl-still .st-date { color: var(--accent); }

/* 8. Предметы */
.ob-bg { position: absolute; inset: -5% 0; }
.ob-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.12); }
.tpl-obj > *:not(.ob-bg) { position: relative; z-index: 2; }
.ob-ticket { padding: 70px 18px 50px; }
.ob-title { color: #fff; font-size: clamp(46px, 14vw, 66px); text-shadow: 0 2px 20px rgba(0,0,0,.25); margin: 0 0 26px; line-height: 1; }
.ticket { background: #fbf8f1; color: #1c2638; border-radius: 16px; text-align: left; padding: 18px 18px 0; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.tk-h { display: flex; justify-content: space-between; font-family: var(--fb), monospace; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--deco); }
.tk-names { font-size: 34px; color: #1c2638; margin: 12px 0 10px; line-height: 1.05; }
.tk-names .amp { display: inline !important; font-size: .7em !important; }
.tk-route { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px dashed #c9c2b3; border-bottom: 1px dashed #c9c2b3; }
.tk-route b { display: block; font-size: 24px; font-family: var(--fd), serif; } .tk-route small, .tk-grid small { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: #8a8f99; }
.tk-route i { color: var(--deco); font-style: normal; }
.tk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 0; }
.tk-grid b { display: block; font-family: var(--fb), monospace; font-size: 15px; }
.tk-stub { margin: 0 -18px; padding: 16px 18px; border-top: 2px dashed #c9c2b3; position: relative; }
.tk-stub::before, .tk-stub::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.tk-stub::before { left: -11px; } .tk-stub::after { right: -11px; }
.barcode { height: 46px; background: repeating-linear-gradient(90deg, #1c2638 0 2px, transparent 2px 4px, #1c2638 4px 5px, transparent 5px 8px, #1c2638 8px 11px, transparent 11px 13px); }
.ob-news { background: var(--card); padding: 22px 18px 40px; color: var(--ink); }
.np-mast { font-family: var(--fd), serif; font-size: clamp(40px, 12vw, 58px); font-weight: 700; letter-spacing: -.02em; border-bottom: 3px double var(--ink); padding-bottom: 6px; }
.np-line { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding: 5px 0; margin-bottom: 14px; }
.np-head { font-size: clamp(38px, 11vw, 54px); line-height: 1; margin-bottom: 12px !important; text-transform: uppercase; }
.np-head .amp { display: inline !important; }
.np-photo { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 12px; }
.np-cols { columns: 2; column-gap: 16px; column-rule: 1px solid #bbb; text-align: justify; font-size: 13px; line-height: 1.45; }
.np-cols p:first-child::first-letter { font-size: 3em; float: left; line-height: .9; padding-right: 4px; font-family: var(--fd), serif; }
.ob-vinyl { padding: 60px 20px 40px; background: var(--bg); }
.vn-k { color: var(--ink); }
.vinyl-wrap { position: relative; width: 82%; aspect-ratio: 1; margin: 28px auto 24px; }
.sleeve { position: absolute; inset: 0; background: #111; box-shadow: 0 18px 40px rgba(0,0,0,.3); overflow: hidden; z-index: 2; }
.sleeve img { opacity: .9; }
.sl-t { position: absolute; left: 14px; bottom: 12px; right: 14px; text-align: left; color: #fff; font-size: 30px; line-height: .95; }
.sl-t .amp { display: inline !important; font-size: .6em !important; color: var(--bg) !important; }
.disc { position: absolute; top: 4%; right: -26%; width: 92%; aspect-ratio: 1; border-radius: 50%; animation: spin 8s linear infinite;
  background: radial-gradient(circle, var(--bg) 0 14%, #111 14.5% 16%, #1a1a1a 16% 100%), repeating-radial-gradient(circle, #222 0 1px, #111 1px 3px); background-blend-mode: normal; display: flex; align-items: center; justify-content: center; }
.disc { background: radial-gradient(circle, var(--deco) 0 15%, #111 15.5% 17%, transparent 17%), repeating-radial-gradient(circle, #1f1f1f 0 1px, #0e0e0e 1px 3px); }
.disc span { font-size: 9px; color: #111; font-weight: 700; }
@keyframes spin { to { transform: rotate(360deg); } }
.tracks { list-style: none; text-align: left; border-top: 2px solid var(--ink); }
.tracks li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); font-size: 14px; }
.ob-env { padding: 0; display: flex; align-items: center; justify-content: center; }
.env-card { width: 76%; background: #fbfaf6; padding: 34px 20px 30px; box-shadow: 0 16px 40px rgba(0,0,0,.22); }
.env-card .kicker { color: var(--deco); }
.env-card .names { font-size: clamp(46px, 14vw, 64px); margin: 12px 0; }
.env-date { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.ob-post { padding: 70px 22px 40px; background: var(--bg); }
.pc { position: relative; background: #fff; padding: 10px; box-shadow: 0 16px 36px rgba(0,0,0,.2); transform: rotate(-3deg); }
.pc-front { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.pc-title { position: absolute; left: 12px; right: 12px; bottom: 10px; color: #fff; font-size: 32px; text-shadow: 0 2px 10px rgba(0,0,0,.4); text-align: left; line-height: 1; }
.stamp { position: absolute; top: -18px; right: -10px; width: 70px; height: 86px; background: #fff; padding: 5px; transform: rotate(8deg);
  -webkit-mask: radial-gradient(circle 4px at 4px 4px, transparent 98%, #000) -4px -4px / 9px 9px; mask: radial-gradient(circle 4px at 4px 4px, transparent 98%, #000) -4px -4px / 9px 9px; }
.stamp img { width: 100%; height: 100%; object-fit: cover; }
.postmark { position: absolute; left: -16px; bottom: -22px; width: 92px; height: 92px; border: 2px solid var(--deco); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--deco); font-size: 11px; transform: rotate(-14deg); background: transparent; }
.ob-post .names { font-size: clamp(46px, 14vw, 64px); margin-top: 42px; }
.pc-date { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.ob-frame { padding: 60px 26px 44px; background: var(--bg); }
.fr-k { color: var(--muted); }
.frame { margin: 26px auto 22px; width: 84%; background: #111; padding: 14px; box-shadow: 0 22px 44px rgba(0,0,0,.25); }
.mat { background: #fff; padding: 22px; }
.mat img { aspect-ratio: 4 / 5; }
.label { width: 64%; margin: 0 auto; text-align: left; background: #fff; padding: 12px 14px; box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.label .names { font-size: 22px !important; line-height: 1.1 !important; color: var(--ink) !important; text-align: left; }
.label .names .amp { display: inline !important; }
.label small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.ob-letter { padding: 50px 18px 40px; background: var(--bg); }
.paper { background: #fbf6ea; padding: 34px 26px 30px; text-align: left; box-shadow: 0 14px 34px rgba(0,0,0,.15); position: relative; }
.paper::after { content: ''; position: absolute; right: 24px; top: 30px; width: 80px; height: 80px; border-radius: 50%; border: 6px solid rgba(140,90,58,.15); }
.lt-date { font-family: var(--fb), monospace; font-size: 12px; text-align: right; color: var(--muted); }
.typed { font-family: var(--fb), monospace; font-size: 14px; line-height: 1.7; margin: 22px 0; white-space: pre-line; }
.ob-letter .names { font-size: 28px !important; text-align: left; } .ob-letter .names .amp { display: inline !important; }
.lt-sig { font-family: 'Caveat', cursive; font-size: 22px; color: var(--deco); margin-top: 4px; }

/* 9. Сплит */
.sp-half { display: flex; flex-direction: column; }
.hf-ph { height: 56svh; overflow: hidden; }
.hf-block { flex: 1; background: var(--bg); color: #fff; padding: 36px 26px 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hf-block .kicker { color: rgba(255,255,255,.8); }
.hf-block .names { color: #fff !important; font-size: clamp(48px, 14vw, 68px); margin: 14px 0; }
.hf-block .names .amp { color: rgba(255,255,255,.8) !important; }
.hf-date { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; }
.sp-bauhaus { padding: 60px 22px 40px; background: var(--bg); }
.bh-shapes i { position: absolute; display: block; }
.bh-shapes .c1 { top: 0; left: 0; width: 46%; height: 140px; background: var(--deco); border-radius: 0 0 999px 0; }
.bh-shapes .c2 { top: 30px; right: -40px; width: 150px; height: 150px; border-radius: 50%; background: #e3b23c; }
.bh-shapes .c3 { bottom: 0; left: -30px; width: 140px; height: 70px; background: #1f3a6b; border-radius: 999px 999px 0 0; }
.bh-shapes .c4 { bottom: 60px; right: 20px; width: 60px; height: 60px; background: var(--ink); }
.bh-ph { position: relative; z-index: 2; width: 70%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 70px auto 22px; }
.sp-bauhaus .kicker, .sp-bauhaus .names, .bh-date { position: relative; z-index: 2; }
.sp-bauhaus .names { font-size: clamp(44px, 13vw, 62px); text-transform: uppercase; letter-spacing: -.03em; margin: 10px 0; }
.bh-date { font-weight: 700; letter-spacing: .2em; }

/* 10. Стекло */
.tpl-glass { display: flex; align-items: center; justify-content: center; padding: 60px 20px; background: var(--bg); }
.gl-bg { position: absolute; inset: -5% 0; }
.gl-blobs i { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(50px); opacity: .8; animation: drift 14s ease-in-out infinite alternate; }
.gl-blobs i:nth-child(1) { background: #ffc7a8; top: -10%; left: -20%; } .gl-blobs i:nth-child(2) { background: #c9b6ff; bottom: 0; right: -25%; animation-delay: -4s; } .gl-blobs i:nth-child(3) { background: #a8dcff; top: 40%; left: 10%; animation-delay: -8s; }
@keyframes drift { to { transform: translate(30px, -40px) scale(1.15); } }
.gl-card { position: relative; z-index: 2; width: 100%; background: rgba(255,255,255,.35); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.6); border-radius: 28px; padding: 36px 22px 24px; box-shadow: 0 20px 50px rgba(60,40,90,.15); }
.gl-card .kicker { color: var(--muted); }
.gl-card .names { font-size: clamp(46px, 14vw, 66px); margin: 14px 0 10px; }
.gl-date { font-size: 13px; letter-spacing: .3em; color: var(--ink); }
.gl-ph { margin-top: 20px; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; }

/* 11. Детские 3D */
.tpl-kids { background: var(--bg); display: flex; flex-direction: column; }
.kd-ph { height: 60svh; min-height: 360px; overflow: hidden; border-radius: 0 0 40px 40px; }
.kd-body { padding: 26px 24px 46px; }
.kd-body .kicker { color: var(--deco); font-weight: 700; }
.tpl-kids .names { font-size: clamp(52px, 16vw, 78px); margin: 12px 0; color: var(--accent); }
.kd-age { display: inline-flex; align-items: baseline; gap: 6px; background: var(--deco); color: #fff; border-radius: 999px; padding: 8px 22px; margin: 6px 0 12px; font-family: var(--fs), sans-serif; }
.kd-age b { font-size: 34px; } .kd-age span { font-size: 14px; }
.kd-date { font-weight: 700; color: var(--ink); letter-spacing: .1em; }

/* ═════════ Оформление разделов (skin) ═════════ */
.tpl section { padding: 60px 28px; }
.tpl h2 { font-family: var(--fd), serif; font-weight: 400; font-size: 34px; letter-spacing: .01em; }
.tpl .divider { margin: 0 auto; }
.skin-minimal h2 { font-size: 13px; font-family: var(--fb), sans-serif; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.skin-minimal section + section { border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.skin-minimal .divider { display: none; }
.skin-minimal .invite-text { font-size: 22px; }
.skin-dark .page { background: var(--card); color: var(--ink); }
.skin-dark .divider { color: var(--deco); }
.skin-news h2 { font-family: var(--fd), serif; font-weight: 700; text-transform: uppercase; border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); padding: 6px 0; font-size: 22px; letter-spacing: .08em; }
.skin-news .divider { display: none; }
.skin-zine h2 { display: inline-block; background: var(--ink); color: var(--card); padding: 4px 12px; transform: rotate(-2deg); font-family: var(--fs), sans-serif; font-weight: 700; text-transform: uppercase; font-size: 24px; }
.skin-zine section:nth-of-type(even) h2 { background: var(--deco); color: #fff; transform: rotate(2deg); }
.skin-zine .divider { display: none; }
.skin-glass .page { background: linear-gradient(180deg, var(--bg), var(--soft)); }
.skin-glass section:not(.hero) { background: rgba(255,255,255,.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); margin: 14px; border-radius: 26px; border: 1px solid rgba(255,255,255,.6); padding: 40px 22px; }
.skin-glass .divider { display: none; }
.skin-kids h2 { font-family: var(--fs), sans-serif; font-weight: 700; color: var(--accent); }
.skin-kids section:not(.hero) { background: var(--card); border-radius: 30px; margin: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.skin-kids .countdown div { border-radius: 20px; }
.skin-kids .divider { display: none; }

/* ═════════ Эффекты прокрутки ═════════ */
[data-fx] { transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1), filter 1s ease, clip-path 1.2s cubic-bezier(.7,0,.2,1); }
.fx-wait[data-fx="fade"] { opacity: 0; }
.fx-wait[data-fx="up"] { opacity: 0; transform: translateY(40px); }
.fx-wait[data-fx="scale"] { opacity: 0; transform: scale(.88); }
.fx-wait[data-fx="tilt"] { opacity: 0; transform: translateY(40px) rotate(-6deg); }
.fx-wait[data-fx="blur"] { opacity: 0; filter: blur(14px); }
.fx-wait[data-fx="clip"] { clip-path: inset(0 0 100% 0); }
.fx-wait[data-fx="bounce"] { opacity: 0; transform: scale(.6); }
.fx-in[data-fx="bounce"] { transition-timing-function: cubic-bezier(.3,1.6,.5,1); }
.fx-letter { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(6px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1), filter .7s ease; }
.fx-letters-on .fx-letter { opacity: 1; transform: none; filter: none; }
.draw path, .draw circle, .draw ellipse { stroke-dasharray: 1200; stroke-dashoffset: 1200; transition: stroke-dashoffset 2.6s ease; }
.fx-in .draw path, .fx-in .draw circle, .fx-in .draw ellipse, .fx-in.draw path { stroke-dashoffset: 0; }
.fx-particles { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
@media (prefers-reduced-motion: reduce) {
  [data-fx], .fx-letter { transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .draw path, .draw circle, .draw ellipse { stroke-dashoffset: 0; }
  .disc, .gl-blobs i, .tc-scroll { animation: none; }
}
.fx-word { display: inline-block; white-space: nowrap; }
.tpl-hero .names, .cv-mast, .ob-title, .np-head { overflow-wrap: normal; word-break: normal; hyphens: none; }
.fx-instant [data-fx], .fx-instant .fx-letter, .fx-instant .draw path, .fx-instant .draw circle, .fx-instant .draw ellipse { transition: none !important; }
.vinyl-wrap { width: 68%; margin: 28px 0 24px 6%; }
.disc { right: -36%; width: 90%; }
.tpl.dark .kd-date, .tpl.dark .tpl-kids .kicker { color: var(--accent); }
.tpl.dark .tpl-mono .tm-date, .tpl.dark .tpl-big .tb-date, .tpl.dark .tpl-big .tb-unit { color: color-mix(in srgb, var(--accent) 75%, transparent); }

/* Юбилейные даты: цифра из материала годовщины */
.tb-jub { justify-content: center; padding: 60px 24px 50px; }
.jb-bg { position: absolute; inset: -6% 0; opacity: .32; }
.tpl.dark .jb-bg { opacity: .45; }
.tb-jub::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, transparent 0, var(--bg) 78%); pointer-events: none; }
.tb-jub > *:not(.jb-bg) { position: relative; z-index: 2; }
.jb-k { color: var(--accent); letter-spacing: .42em; font-size: 14px; font-weight: 700; padding: 7px 14px; border-top: 1px solid var(--deco); border-bottom: 1px solid var(--deco); }
.jb-num { font-family: var(--fd), serif; font-weight: 700; font-size: clamp(200px, 66vw, 320px) !important; line-height: .9; margin: 18px 0 14px; padding-top: .04em; letter-spacing: -.04em;
  background-color: var(--accent); background-size: 140% auto; background-position: center; background-blend-mode: luminosity; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--deco);
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.18)) contrast(1.15); }
.tpl.dark .jb-num { filter: drop-shadow(0 0 22px rgba(255,255,255,.12)) brightness(1.5) contrast(1.1); }
.jb-unit { font-size: 12px; letter-spacing: .45em; text-transform: uppercase; color: var(--muted); }
.tb-jub .names { font-size: clamp(36px, 11vw, 54px); margin-top: 22px; }
.tb-jub .names .amp { font-size: .8em; color: var(--deco); margin: 0 .15em; }
.jb-date { margin-top: 10px; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.jb-photo { width: 70%; aspect-ratio: 3 / 4; margin-top: 26px; border-radius: 999px 999px 8px 8px; overflow: hidden; outline: 1px solid var(--deco); outline-offset: 6px; }

.jb-num.jb-3 { font-size: clamp(150px, 48vw, 240px) !important; letter-spacing: -.06em; }
.jb-num.jb-tint { background-blend-mode: normal; filter: drop-shadow(0 6px 18px rgba(0,0,0,.12)) saturate(1.2) contrast(1.25); }
.typo-bold .jb-num { font-size: clamp(140px, 40vw, 210px) !important; letter-spacing: -.02em; }

/* Юбилей: арт-цифра картинкой */
.tb-jub.jb-art { padding: 0 0 54px; justify-content: flex-start; }
.tb-jub.jb-art::after { display: none; }
.jba { position: relative; width: 100%; height: 74vh; max-height: 680px; overflow: hidden; }
.jba img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block; }
.jba::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, var(--bg) 97%); }
.jba-body { position: relative; z-index: 2; margin-top: -16vh; padding: 0 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.jb-art .names { margin-top: 18px; }

/* След при прокрутке */
.fx-trail { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 6; overflow: visible; }
.fx-trail .tr-line { stroke: var(--deco, #b89b63); stroke-width: 1.6; stroke-linecap: round; opacity: .75; }
.fx-trail .tr-line.thin { stroke-width: .8; opacity: .55; }
.fx-trail .tr-mark { fill: var(--deco, #b89b63); opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: opacity .5s ease, transform .5s cubic-bezier(.2,.9,.3,1.4); }
.fx-trail .tr-mark.on { opacity: .62; transform: scale(1); }
.fx-trail.steps .tr-mark.on { opacity: .5; }
.fx-trail .tr-tip { opacity: 0; transition: opacity .3s; } .fx-trail .tr-tip.on { opacity: 1; }
.fx-trail .tr-tip .tr-mark { opacity: .9; transform: none; }
.jb-num.jb-4 { font-size: clamp(110px, 34vw, 180px) !important; letter-spacing: -.05em; }
.fx-trail .tr-ribbon { opacity: .88; filter: drop-shadow(0 3px 4px rgba(40, 28, 18, .16)); }

.fx-trail .tr-line.ink { stroke: var(--ink, #2f281f); stroke-width: 1.3; opacity: .55; }
.fx-trail .tr-pen-body { fill: var(--ink, #2f281f); }
.fx-trail .tr-pen-ring { fill: var(--deco, #b89b63); }
.fx-trail .tr-pen-nib { fill: var(--deco, #b89b63); }
.fx-trail .tr-pen-slit { stroke: var(--ink, #2f281f); stroke-width: .7; }
.fx-trail .tr-pen-slit-dot { fill: var(--ink, #2f281f); }

.fx-trail .tr-q-vane { fill: var(--card, #fff); stroke: var(--ink, #2f281f); stroke-width: .7; }
.fx-trail .tr-q-vane2 { fill: color-mix(in srgb, var(--deco, #b89b63) 35%, var(--card, #fff)); stroke: var(--ink, #2f281f); stroke-width: .7; }
.fx-trail .tr-q-barb { stroke: var(--ink, #2f281f); stroke-width: .45; opacity: .6; }
.fx-trail .tr-q-shaft { stroke: var(--ink, #2f281f); stroke-width: 1.1; stroke-linecap: round; }
.fx-trail .tr-q-nib { fill: var(--ink, #2f281f); }
.fx-trail .tr-line.ink { stroke-width: 1.5; opacity: .6; }

/* Отрывной календарь */
[data-fx="cal"].fx-wait, [data-fx="cal"] { opacity: 1 !important; transform: none !important; filter: none !important; }
.cal-page { position: absolute; inset: 6px 10px; z-index: 7; background: var(--card); border-radius: 10px 10px 4px 4px;
  box-shadow: 0 12px 30px rgba(30, 20, 10, .16), 0 1px 0 rgba(0,0,0,.05); display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform-origin: 0% 0%; overflow: hidden; pointer-events: none; color: var(--ink); }
.cal-rings { position: absolute; left: 0; right: 0; top: 0; height: 34px; background: var(--deco); display: flex; justify-content: space-around; align-items: flex-end; padding: 0 22%; }
.cal-rings i { width: 12px; height: 12px; border-radius: 50%; background: var(--card); margin-bottom: 7px; box-shadow: inset 0 2px 2px rgba(0,0,0,.25); }
.cal-page::after { content: ''; position: absolute; left: 0; right: 0; top: 34px; height: 6px;
  background: radial-gradient(circle at 5px 0, transparent 2.6px, var(--card) 3px) 0 0 / 10px 6px repeat-x; filter: drop-shadow(0 1px 0 rgba(0,0,0,.08)); }
.cal-m { font: 600 13px/1 var(--fb), sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-top: 20px; }
.cal-d { font: 400 clamp(110px, 38vw, 170px)/1 var(--fd), serif; color: var(--accent); margin: 10px 0 6px; }
.cal-page.last .cal-d { color: var(--deco); }
.cal-w { font: 500 14px/1 var(--fb), sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.cal-page.torn { animation: calTear 1.2s cubic-bezier(.45, .05, .55, .95) forwards; }
@keyframes calTear {
  0% { transform: none; }
  18% { transform: rotate(-2.5deg) translateY(-6px); }
  45% { transform: rotate(-10deg) translate(4%, -18%); opacity: 1; }
  100% { transform: rotate(-28deg) translate(30%, -120%); opacity: 0; }
}
.fx-instant .cal-page { display: none; }
