/* Тайны китайской панды — редизайн по макету «Panda-zrd» (06.10.2026).
   Стикерный стиль: кремовый фон, чёрная обводка 2px с жёсткой тенью, пастельные плашки,
   Unbounded для заголовков, Onest для текста, Ma Shan Zheng для иероглифов. Шрифты — в шаблоне. */

@font-face{font-family:'Onest';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/onest-400-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Onest';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/onest-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Onest';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/onest-500-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Onest';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/onest-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Onest';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/onest-600-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Onest';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/onest-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/unbounded-500-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/unbounded-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/unbounded-700-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/unbounded-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/unbounded-800-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/unbounded-800-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Ma Shan Zheng';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/mashanzheng-400-hanzi.woff2) format('woff2')}

:root{--cream:#fff8ec;--ink:#14110f;--green:#1e6b52;--yellow:#f7c948;--red:#e2442f;--pink:#ffd9cf;--sand:#fbe7a6;--mint:#cfe8dc;--white:#fff;--muted:#4e463c;--muted2:#3a332a;--green-text:#d9eadf;--dark-text:#cfc7b8;--head:'Unbounded',sans-serif;--body:'Onest',system-ui,sans-serif;--hanzi:'Ma Shan Zheng',serif;--shadow:4px 4px 0 var(--ink);--lift:transform .15s ease,box-shadow .15s ease}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--body);font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img,video{max-width:100%;height:auto}
::selection{background:var(--yellow);color:var(--ink)}
h1,h2,h3{font-family:var(--head);font-weight:800;letter-spacing:-0.02em;margin:0}
h1{font-size:clamp(34px,5.6vw,68px);line-height:1.02;letter-spacing:-0.025em;text-wrap:balance}
h2{font-size:clamp(24px,3vw,38px);line-height:1.1}
h3{font-size:18px;font-weight:700;line-height:1.25}
p{margin:0}
.wrap{max-width:1200px;margin:0 auto;padding-left:clamp(16px,4vw,48px);padding-right:clamp(16px,4vw,48px)}
.narrow{max-width:760px}
.hanzi{font-family:var(--hanzi);font-weight:400}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:8px;z-index:100;padding:8px 14px;border-radius:12px;background:var(--yellow);border:2px solid var(--ink)}
.skip:focus{left:8px}
.section{padding-top:clamp(48px,6vw,88px)}
.section-sm{padding-top:clamp(28px,4vw,48px)}
.space{height:clamp(48px,6vw,88px)}
.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.section-head-inline{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.more-link{font-weight:600;text-decoration:underline;text-underline-offset:4px}
.lead{font-size:clamp(16px,1.4vw,19px);color:var(--muted2);text-wrap:pretty}
.muted{color:var(--muted)}

/* кнопки и пилюли */
.btn{display:inline-flex;justify-content:center;align-items:center;gap:10px;min-height:56px;padding:0 24px;border-radius:18px;border:2px solid var(--ink);font-family:inherit;font-weight:600;font-size:15px;line-height:1.2;text-align:center;cursor:pointer;transition:var(--lift)}
.btn-yellow{background:var(--yellow);color:var(--ink);font-family:var(--head);font-weight:700;box-shadow:var(--shadow)}
.btn-yellow:hover,.btn-red:hover,.btn-green:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 var(--ink)}
.btn-ink{background:var(--ink);color:var(--cream)}
.btn-ink:hover{color:var(--yellow)}
.btn-ghost{background:transparent;color:inherit}
.btn-ghost:hover{background:var(--white)}
.btn-ghost.on-green{color:var(--cream);border-color:var(--cream)}
.btn-ghost.on-green:hover{background:var(--cream);color:var(--ink)}
.btn-red{background:var(--red);color:#fff;font-family:var(--head);font-weight:700;box-shadow:var(--shadow)}
.btn-green{background:var(--green);color:var(--cream);font-family:var(--head);font-weight:700;box-shadow:var(--shadow)}
.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 14px;border-radius:999px;border:2px solid var(--ink);background:var(--cream);color:var(--ink);font-size:14px;font-weight:600;line-height:1.3}
.pill .hanzi{font-size:16px}
.pill-yellow{background:var(--yellow)}
.pill-red{background:var(--red);color:#fff}
.pill-pink{background:var(--pink)}
.pill-sand{background:var(--sand)}
.pill-mint{background:var(--mint)}
.tilt-l{transform:rotate(-3deg)}
.tilt-r{transform:rotate(3deg)}
.tint-0{background:var(--pink)}
.tint-1{background:var(--sand)}
.tint-2{background:var(--mint)}
.g-yellow{background:var(--yellow);color:var(--ink)}
.g-green{background:var(--green);color:var(--cream);border-radius:50%}
.g-red{background:var(--red);color:#fff}
.g-cream{background:var(--cream);color:var(--ink)}

/* шапка */
.site-head{position:sticky;top:0;z-index:40;background:var(--cream);border-bottom:2px solid var(--ink)}
.head-row{display:flex;align-items:center;gap:12px;padding-top:12px;padding-bottom:12px}
.logo{display:flex;align-items:center;gap:10px;flex:1 1 auto;min-width:0}
.logo img{width:44px;height:44px;border-radius:50%;border:2px solid var(--ink);object-fit:cover;flex-shrink:0}
.logo span{font-family:var(--head);font-weight:800;font-size:14px;line-height:1.15}
.nav{display:none;gap:4px;align-items:center}
.nav a{padding:7px 14px;border-radius:999px;border:2px solid transparent;font-weight:500;font-size:15px;white-space:nowrap}
.nav a:hover{border-color:var(--ink)}
.nav a.active{background:var(--yellow);border-color:var(--ink)}
.btn-head{display:none;min-height:44px;padding:0 18px;border-radius:14px;background:var(--yellow);font-family:var(--body);font-weight:600;font-size:14px;box-shadow:3px 3px 0 var(--ink);margin-left:8px;white-space:nowrap}
.btn-head:hover{transform:translate(-1px,-1px);box-shadow:4px 4px 0 var(--ink)}
.btn-head-sm{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:14px;background:var(--yellow);border:2px solid var(--ink);font-weight:600;font-size:14px;white-space:nowrap}
.burger{width:44px;height:44px;border-radius:14px;background:var(--cream);border:2px solid var(--ink);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;cursor:pointer;padding:0;flex-shrink:0}
.burger span{width:18px;height:2px;background:var(--ink);transition:transform .2s,opacity .2s}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.mobile-nav{border-top:2px solid var(--ink);padding:14px 16px 20px;background:var(--cream)}
.mobile-nav[hidden]{display:none}
.mobile-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.mobile-nav ul a{display:flex;justify-content:space-between;align-items:center;min-height:54px;padding:0 18px;border-radius:16px;border:2px solid var(--ink);background:var(--white);font-family:var(--head);font-weight:700;font-size:16px}
.mobile-nav ul a[aria-current]{background:var(--yellow)}
.mobile-nav-links{margin-top:12px;font-size:15px;color:var(--muted)}
.mobile-nav-links a{text-decoration:underline}
@media (min-width:960px){.nav{display:flex}.btn-head{display:inline-flex}.burger,.btn-head-sm,.mobile-nav{display:none!important}}
.promo{background:var(--sand);border-bottom:2px solid var(--ink);padding:10px 0;font-size:15px}

/* первый экран (главная и страница бота) */
.hero{background:var(--green);color:var(--cream);border-bottom:2px solid var(--ink)}
.hero-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:clamp(32px,5vw,64px);align-items:center;padding-top:clamp(28px,6vw,80px);padding-bottom:clamp(40px,7vw,96px)}
.hero-text{display:flex;flex-direction:column;gap:22px;order:2}
.hero-text h1{color:var(--cream)}
.hero .kicker{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;padding:6px 14px 6px 6px;border-radius:999px;background:var(--cream);color:var(--ink);border:2px solid var(--ink);font-size:14px;font-weight:500}
.kicker .hanzi{width:28px;height:28px;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;font-size:18px}
.hero .lead{color:var(--green-text);max-width:34em}
.hero .actions{display:flex;flex-wrap:wrap;gap:14px;padding-top:4px}
.hero .actions .btn{min-height:58px;border-radius:20px}
.hero .actions .btn-yellow{flex:1 1 260px}
.hero-art{order:1;display:flex;justify-content:center}
.hero-disc{position:relative;width:min(100%,440px);aspect-ratio:1}
.hero-disc .ring{position:absolute;inset:0;border-radius:50%;overflow:hidden;background:#2a1d14;box-shadow:0 0 0 3px var(--ink),8px 8px 0 3px var(--ink);isolation:isolate}
.hero-disc .ring video,.hero-disc .ring img{position:absolute;left:-3.35%;top:-3.79%;width:107.14%;height:107.14%;max-width:none;display:block;object-fit:cover}
.sticker{position:absolute;border:2px solid var(--ink);font-weight:700;text-align:center;line-height:1.2}
.sticker-free{right:-2%;top:6%;padding:10px 16px;border-radius:18px;background:var(--yellow);color:var(--ink);box-shadow:3px 3px 0 var(--ink);font-family:var(--head);font-size:clamp(12px,1.4vw,15px);transform:rotate(8deg)}
.sticker-dao{left:0;bottom:8%;width:clamp(58px,8vw,80px);height:clamp(58px,8vw,80px);border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;font-size:clamp(32px,4.4vw,44px);font-weight:400;transform:rotate(-10deg)}
.sticker-since{right:6%;bottom:2%;padding:8px 14px;border-radius:999px;background:var(--cream);color:var(--ink);font-size:13px;font-weight:600;transform:rotate(-4deg)}
.mascot-disc{position:relative;width:min(100%,380px);aspect-ratio:1}
.mascot-disc>img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;border:3px solid var(--ink);box-shadow:8px 8px 0 var(--ink)}
.sticker-a{left:-4%;top:10%;padding:10px 14px;border-radius:18px;background:var(--cream);color:var(--ink);font-size:15px;transform:rotate(-8deg)}
.sticker-b{right:0;bottom:10%;padding:10px 14px;border-radius:18px;background:var(--red);color:#fff;font-size:15px;transform:rotate(6deg)}

/* три пути */
.paths-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:20px}
.path{display:flex;flex-direction:column;gap:14px;padding:22px;border-radius:28px;border:2px solid var(--ink);box-shadow:var(--shadow);transition:var(--lift)}
.path:hover{transform:rotate(0) translate(-2px,-2px);box-shadow:6px 6px 0 var(--ink)}
.path-pink{background:var(--pink);transform:rotate(-1deg)}
.path-sand{background:var(--sand);transform:rotate(.8deg)}
.path-mint{background:var(--mint);transform:rotate(-.5deg)}
.path-top{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
.path-glyph{width:72px;height:72px;border-radius:20px;display:grid;place-items:center;font-size:44px;border:2px solid var(--ink);flex-shrink:0}
.path-top img{height:100px;width:auto;max-width:55%;object-fit:contain;margin:-8px -4px -4px 0}
.path h3{font-size:22px}
.path p{font-size:16px;line-height:1.5;color:var(--muted2)}
.path-link{margin-top:auto;font-weight:600;text-decoration:underline;text-underline-offset:4px}

/* карточки статей */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:16px}
.card{display:flex;border-radius:24px;background:var(--white);border:2px solid var(--ink);transition:var(--lift)}
.card:hover{box-shadow:var(--shadow);transform:translate(-2px,-2px)}
.card[hidden]{display:none}
.card-link{display:flex;flex-direction:column;gap:10px;padding:20px;width:100%}
.card-top{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:44px}
.card-date{padding:3px 10px;border-radius:999px;font-size:13px;font-weight:600;border:1.5px solid var(--ink)}
.card-top img{height:56px;width:auto;max-width:72px;object-fit:contain;margin:-6px -4px -6px 0}
.card-title{font-family:var(--head);font-weight:700;font-size:18px;line-height:1.25;text-wrap:balance}
.card-text{font-size:15px;color:var(--muted);line-height:1.5}

/* гексаграмма */
.hexagram{display:flex;flex-direction:column;gap:6px;width:56px;flex-shrink:0;color:var(--ink)}
.hexagram i{display:block;height:8px;background:currentColor;border-radius:4px}
.hexagram .yin{display:flex;gap:18%}
.hexagram .yin i{flex:1}
.hexagram-lg{width:84px;gap:7px}
.hexagram-lg i{height:9px}
.hexagram-sm{width:52px;gap:4px}
.hexagram-sm i{height:5px;border-radius:3px}
.card .hexagram{color:var(--green)}

/* разделы: цветная шапка, поиск, «показать ещё» */
.band{border-bottom:2px solid var(--ink)}
.band-row{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap;padding-top:clamp(24px,4vw,56px);padding-bottom:clamp(32px,5vw,64px)}
.band-col{display:flex;flex-direction:column;gap:20px;padding-top:clamp(24px,4vw,56px);padding-bottom:clamp(36px,5vw,72px)}
.band-text{display:flex;flex-direction:column;gap:14px;max-width:680px}
.band-glyph{width:clamp(96px,12vw,140px);height:clamp(96px,12vw,140px);border-radius:32px;border:2px solid var(--ink);box-shadow:5px 5px 0 var(--ink);display:grid;place-items:center;font-size:clamp(60px,8vw,90px);transform:rotate(6deg);flex-shrink:0}
.band-sand{background:var(--sand)}
.band-mint{background:var(--mint)}
.band-pink{background:var(--pink)}
.band-white{background:var(--white)}
.band-dark{background:var(--ink);color:var(--cream)}
.band-dark h1{color:var(--cream);max-width:900px;font-size:clamp(28px,4.6vw,52px);line-height:1.08}
.band-dark .crumbs,.band-dark .crumbs a,.band-dark .lead,.band-dark .meta{color:var(--dark-text)}
.band-dark .meta a{color:var(--yellow)}
.crumbs{display:flex;gap:8px;font-size:14px;color:var(--muted);flex-wrap:wrap}
.crumbs a{text-decoration:underline}
.newbie{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px 20px;border-radius:22px;background:var(--green);color:var(--cream);border:2px solid var(--ink);transition:var(--lift)}
.newbie:hover{box-shadow:var(--shadow)}
.newbie strong{font-family:var(--head);font-weight:700;font-size:16px;flex:1 1 240px}
.newbie .pill{background:var(--yellow);padding:10px 16px;border-radius:14px}
.grid-tools{display:flex;flex-direction:column;gap:24px}
.search{display:flex;align-items:center;gap:10px;min-height:56px;padding:0 18px;border-radius:18px;background:var(--white);border:2px solid var(--ink);max-width:520px}
.search span{font-size:18px}
.search input{flex:1;border:0;outline:0;background:transparent;font:inherit;font-size:16px;color:var(--ink);min-width:0}
.search:focus-within{box-shadow:var(--shadow)}
.grid-empty{padding:28px;border-radius:24px;border:2px dashed var(--ink);text-align:center;color:var(--muted)}
.grid-empty[hidden],.btn-more[hidden]{display:none}
.btn-more{align-self:center;min-height:56px;padding:0 28px;border-radius:18px;background:var(--cream);border:2px solid var(--ink);box-shadow:var(--shadow);font-family:var(--head);font-weight:700;font-size:14px;color:var(--ink);cursor:pointer;transition:var(--lift)}
.btn-more:hover{background:var(--yellow)}
.pager{display:flex;gap:8px;flex-wrap:wrap}
.pager a{min-width:44px;height:44px;padding:0 12px;display:grid;place-items:center;border-radius:14px;border:2px solid var(--ink);font-weight:600}
.pager a.active{background:var(--yellow)}

/* статья */
.progress{position:fixed;top:0;left:0;height:4px;width:0;background:var(--red);z-index:60;transition:width .1s linear}
.article{display:flex;flex-direction:column;gap:22px;padding-top:clamp(24px,4vw,56px);font-size:18px;line-height:1.65}
.article h1{font-size:clamp(30px,5vw,52px);line-height:1.06}
.rubric{align-self:flex-start}
.meta{display:flex;align-items:center;gap:12px;font-size:15px;color:var(--muted);flex-wrap:wrap}
.meta img{width:40px;height:40px;border-radius:50%;border:2px solid var(--ink);object-fit:cover}
.meta a{text-decoration:underline;font-weight:600}
.prose{display:flex;flex-direction:column;gap:18px}
.prose p{text-wrap:pretty}
.prose .lead-p{font-family:var(--head);font-weight:500;font-size:clamp(19px,2.2vw,24px);line-height:1.4}
.prose h2{font-size:clamp(22px,2.6vw,30px);margin-top:10px}
.prose h3{font-size:20px;margin-top:6px}
.prose a{text-decoration:underline;text-underline-offset:3px;font-weight:600}
.prose ul,.prose ol{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px;counter-reset:n}
.prose li{display:flex;gap:14px;align-items:flex-start;padding:14px 18px;border-radius:20px;background:var(--white);border:2px solid var(--ink)}
.prose ul li::before{content:'';flex:0 0 12px;height:12px;border-radius:50%;background:var(--yellow);border:2px solid var(--ink);margin-top:9px}
.prose ol li::before{counter-increment:n;content:counter(n);flex:0 0 40px;height:40px;border-radius:12px;background:var(--sand);border:2px solid var(--ink);display:grid;place-items:center;font-family:var(--head);font-weight:800;font-size:15px}
.prose li:nth-child(3n+2)::before{background:var(--pink)}
.prose li:nth-child(3n)::before{background:var(--mint)}
.prose blockquote{margin:0;padding:20px 22px;border-radius:24px;background:var(--yellow);border:2px solid var(--ink);box-shadow:var(--shadow);transform:rotate(-.5deg)}
.prose img{border-radius:20px;border:2px solid var(--ink)}
.prose iframe{width:100%;aspect-ratio:16/9;border:2px solid var(--ink);border-radius:20px}
.disclaimer{padding:18px 20px;border-radius:20px;border:2px dashed var(--ink);font-size:15px;line-height:1.55;color:var(--muted2)}
.disclaimer strong{color:var(--ink)}
.article-actions{display:flex;flex-wrap:wrap;gap:12px}
.article-actions .btn{min-height:52px;border-radius:16px}
.ask{display:flex;flex-direction:column;gap:14px;padding:22px;border-radius:26px;background:var(--red);color:#fff;border:2px solid var(--ink);box-shadow:var(--shadow)}
.ask h2{font-size:20px;color:#fff}
.ask .btn{align-self:flex-start;background:var(--cream);color:var(--ink);min-height:52px;border-radius:16px;font-weight:700}
.ask .btn:hover{background:var(--yellow)}
.hexa-row{display:flex;align-items:center;gap:clamp(14px,3vw,32px);flex-wrap:wrap;padding-top:12px}
.hexa-box{display:flex;align-items:center;gap:16px;padding:18px 22px;border-radius:24px;color:var(--ink);border:2px solid var(--cream)}
.hexa-box-a{background:var(--yellow)}
.hexa-box-b{background:var(--mint)}
.hexa-box-b .hexagram{color:var(--green)}
.hexa-name{display:flex;flex-direction:column}
.hexa-name .n{font-family:var(--head);font-weight:800;font-size:34px;line-height:1}
.hexa-name .name{font-weight:700}
.hexa-arrow{font-family:var(--head);font-weight:800;font-size:28px;color:var(--yellow)}
.more{padding-top:clamp(48px,6vw,80px)}
.more h2{margin-bottom:20px;font-size:clamp(22px,2.6vw,32px)}

/* книги, лавка, продукты */
.book-card{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:clamp(24px,4vw,48px);align-items:start;padding:clamp(18px,3vw,36px);border-radius:32px;background:var(--white);border:2px solid var(--ink);box-shadow:5px 5px 0 var(--ink)}
.book-cover{position:relative;aspect-ratio:3/4;max-width:380px;width:100%;border-radius:24px;border:2px solid var(--ink);display:flex;flex-direction:column;justify-content:space-between;padding:24px;color:#fff}
.book-cover .author{font-family:var(--head);font-weight:700;font-size:14px}
.book-cover .glyph{align-self:center;font-family:var(--hanzi);font-size:clamp(110px,14vw,160px);line-height:1}
.book-cover .title{font-family:var(--head);font-weight:800;font-size:clamp(20px,2.6vw,28px);line-height:1.1}
.book-cover .sticker{right:-12px;top:-12px;padding:8px 14px;border-radius:14px;font-size:14px;background:var(--yellow);color:var(--ink)}
.cover-red{background:var(--red)}
.cover-green{background:var(--green);color:var(--cream)}
.cover-green .glyph{color:var(--yellow)}
.cover-green .sticker{background:var(--cream)}
.book-body{display:flex;flex-direction:column;gap:16px}
.book-body h2{font-size:clamp(26px,3.4vw,40px);line-height:1.08}
.book-meta{font-size:15px;color:var(--muted)}
.tags{display:flex;flex-wrap:wrap;gap:8px}
.tags .pill{border-width:1.5px}
.book-body .btn{align-self:flex-start}
.howto{display:flex;flex-direction:column;gap:12px;max-width:720px}
.howto h2{font-size:clamp(22px,2.6vw,30px)}
.howto a{text-decoration:underline;font-weight:600}
.shop-box{padding:clamp(20px,3.4vw,40px);border-radius:32px;background:var(--sand);border:2px dashed var(--ink);display:flex;flex-direction:column;gap:18px}
.shop-box .btn{align-self:flex-start}
.shop-box a:not(.btn){text-decoration:underline;font-weight:600}
.shop-head img{margin-left:auto;height:clamp(72px,9vw,104px);width:auto}
.shop-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}
.shop-item{display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:24px;background:var(--white);border:2px solid var(--ink);transition:var(--lift)}
.shop-item:hover{box-shadow:var(--shadow);transform:translate(-2px,-2px)}
.shop-item .cover{aspect-ratio:4/3;border-radius:16px;border:2px solid var(--ink);display:grid;place-items:center;font-family:var(--hanzi);font-size:76px;color:#fff}
.shop-item .t{padding:0 6px;font-family:var(--head);font-weight:700;font-size:16px}
.shop-item .m{padding:0 6px 6px;font-size:14px;color:var(--muted)}
.shop-item.soon{background:var(--sand);border-style:dashed}
.shop-item.soon .cover{background:var(--cream);border-style:dashed;color:var(--ink)}
.products{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:20px}
.product{display:flex;flex-direction:column;gap:12px;padding:22px;border-radius:28px;background:var(--white);border:2px solid var(--ink);box-shadow:var(--shadow)}
.product-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.product .glyph{width:64px;height:64px;border-radius:18px;border:2px solid var(--ink);display:grid;place-items:center;font-family:var(--hanzi);font-size:40px}
.product h2{font-size:22px}
.product .price{font-family:var(--head);font-weight:800;font-size:26px}
.product p{font-size:15px;color:var(--muted2);line-height:1.5}

/* страница бота */
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px;list-style:none;margin:0;padding:0}
.feature{display:flex;flex-direction:column;gap:10px;padding:20px;border-radius:24px;border:2px solid var(--ink);box-shadow:var(--shadow)}
.feature-top{display:flex;justify-content:space-between;align-items:center}
.feature .glyph{width:48px;height:48px;border-radius:16px;background:var(--cream);border:2px solid var(--ink);display:grid;place-items:center;font-family:var(--hanzi);font-size:28px}
.feature .dur{font-size:14px;font-weight:600}
.feature p{font-size:15px;line-height:1.5}
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}
.step{display:flex;flex-direction:column;gap:10px;padding:20px;border-radius:24px;background:var(--white);border:2px solid var(--ink)}
.step .num{width:44px;height:44px;border-radius:50%;background:var(--ink);color:var(--yellow);display:grid;place-items:center;font-family:var(--head);font-weight:800}
.step p{font-size:16px;line-height:1.5}
.step a{text-decoration:underline;font-weight:600}
.note-small{margin-top:24px;font-size:15px;color:var(--muted);max-width:44em}
.note-small a{text-decoration:underline}
.btn-wide{margin-top:28px;max-width:420px;width:100%;min-height:60px;border-radius:20px;font-size:16px}

/* об авторе, «где читать» */
.about-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:clamp(28px,5vw,64px);align-items:start;padding-top:clamp(28px,5vw,72px)}
.photo{position:relative;max-width:420px;width:100%;justify-self:center}
.photo .main{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;border:2px solid var(--ink);border-radius:32px;box-shadow:6px 6px 0 var(--ink);background:var(--mint)}
.photo .face{position:absolute;right:-12px;bottom:-16px;width:96px;height:96px;border-radius:50%;border:3px solid var(--ink);object-fit:cover;transform:rotate(8deg)}
.photo .sticker{left:-10px;top:20px;padding:8px 14px;border-radius:14px;background:var(--yellow);font-size:14px;transform:rotate(-6deg)}
.about-text{display:flex;flex-direction:column;gap:18px;font-size:18px;line-height:1.65}
.about-text .intro{font-family:var(--head);font-weight:500;font-size:clamp(18px,2vw,22px);line-height:1.45}
.about-text .actions{display:flex;flex-wrap:wrap;gap:10px;padding-top:6px}
.about-text .actions .btn{min-height:52px;border-radius:16px}
.links-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px}
.link-card{display:flex;gap:14px;align-items:center;padding:16px;border-radius:22px;border:2px solid var(--ink);transition:var(--lift)}
.link-card:hover{box-shadow:var(--shadow);transform:translate(-2px,-2px)}
.link-card .glyph{flex:0 0 52px;height:52px;border-radius:16px;background:var(--cream);border:2px solid var(--ink);display:grid;place-items:center;font-family:var(--hanzi);font-size:30px}
.link-card b{font-family:var(--head);font-weight:700;font-size:16px;display:block;line-height:1.35}
.link-card small{font-size:14px;color:var(--muted2)}
.note{padding:22px 24px;border-radius:24px;background:var(--white);border:2px dashed var(--ink);display:flex;flex-direction:column;gap:8px;max-width:760px}
.note h2{font-size:18px}
.note p{font-size:16px;color:var(--muted2)}
.where{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}
.where a{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:22px 24px;border-radius:24px;border:2px solid var(--ink);transition:var(--lift)}
.where a:hover{box-shadow:var(--shadow);transform:translate(-2px,-2px)}
.where .l{display:block;font-size:14px;color:var(--muted2)}
.where .h{display:block;font-family:var(--head);font-weight:700;font-size:clamp(17px,2vw,22px)}
.where .arrow{width:44px;height:44px;border-radius:50%;background:var(--ink);color:var(--cream);display:grid;place-items:center;font-size:18px;flex-shrink:0}

/* юридические страницы */
.legal{padding-top:clamp(24px,4vw,56px);display:flex;flex-direction:column;gap:22px}
.legal h1{font-size:clamp(28px,4vw,44px)}
.legal .prose{font-size:16px;line-height:1.6}
.legal .prose h2{font-size:clamp(19px,2.2vw,24px)}
.legal .prose li{padding:10px 14px;border-radius:14px}
.legal .prose ul li::before{margin-top:7px}

/* зелёный блок и подвал */
.cta{padding-top:clamp(48px,6vw,88px);padding-bottom:clamp(48px,6vw,88px)}
.cta-box{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:clamp(20px,4vw,48px);align-items:center;padding:clamp(22px,4vw,48px);border-radius:32px;background:var(--green);color:var(--cream);border:2px solid var(--ink);box-shadow:6px 6px 0 var(--ink)}
.cta-text{display:flex;flex-direction:column;gap:16px}
.cta-text .pill{align-self:flex-start}
.cta-text h2{font-size:clamp(24px,3.2vw,40px);line-height:1.1;color:var(--cream)}
.cta-text p{color:var(--green-text);max-width:34em}
.cta-text .btn{align-self:flex-start}
.cta-tags{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.cta-tags span{padding:10px 16px;border-radius:999px;color:var(--ink);border:2px solid var(--ink);font-weight:600}
.site-foot{background:var(--ink);color:var(--cream);position:relative;font-size:16px}
.foot-mascot{position:absolute;right:clamp(16px,6vw,96px);top:clamp(-96px,-8vw,-72px);height:clamp(80px,9vw,108px);width:auto;pointer-events:none}
.foot-blocks{padding-top:24px}
.foot-in{display:flex;flex-direction:column;gap:40px;padding-top:clamp(40px,5vw,64px);padding-bottom:32px}
.foot-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:32px}
.foot-col{display:flex;flex-direction:column;gap:12px}
.foot-col h2{font-size:14px;color:var(--yellow);font-weight:700}
.foot-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:15px}
.foot-col a:hover{color:var(--yellow)}
.foot-brand{display:flex;align-items:center;gap:10px}
.foot-brand .hanzi{width:48px;height:48px;border-radius:50%;background:var(--red);display:grid;place-items:center;font-size:24px;flex-shrink:0;border:2px solid var(--cream)}
.foot-brand b{font-family:var(--head);font-weight:800;font-size:15px;line-height:1.2}
.foot-about p+p{font-size:15px;color:var(--dark-text)}
.foot-legal{display:flex;flex-direction:column;gap:8px;padding-top:20px;border-top:1px solid #3a342c;font-size:14px;color:#b5ac9c}
.foot-legal div{display:flex;flex-wrap:wrap;gap:6px 18px}
.foot-legal a{color:#b5ac9c}
.foot-legal a:hover{color:var(--yellow)}

/* 404 */
.notfound{text-align:center;padding-top:clamp(48px,8vw,120px);padding-bottom:clamp(48px,8vw,120px);display:flex;flex-direction:column;gap:18px;align-items:center}
.notfound .big{font-size:120px;line-height:1;color:var(--red)}
.notfound .actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.notfound .lead{max-width:34em}

@media (prefers-reduced-motion:reduce){*{transition:none!important}.hero-disc .ring video{display:none}}
