*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#F6F1E6;color:#2C2620;font:400 17px/1.65 Manrope,system-ui,-apple-system,"Segoe UI",sans-serif}
a{color:#8F6F33}
a:hover{color:#B8924A}
.wrap{max-width:760px;margin:0 auto;padding:0 18px}
.top{background:#FFFDF8;border-bottom:1px solid #E8DCC4}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:12px}
.brand{font:600 24px/1 "Cormorant Garamond",Georgia,serif;color:#2C2620;text-decoration:none}
.top nav{display:flex;gap:16px;font-weight:600;font-size:15px}
.top nav a{text-decoration:none}
main.wrap{padding-block:18px 40px}
.crumbs{font-size:13px;color:#6B6354;margin:6px 0 18px}
.crumbs a{color:#6B6354}
h1,h2{font-family:"Cormorant Garamond",Georgia,serif;color:#8F6F33;line-height:1.2}
h1{font-size:clamp(30px,6vw,40px);margin:0 0 14px}
h2{font-size:clamp(23px,4.4vw,28px);margin:34px 0 10px}
.lead{font-size:19px;color:#2C2620;background:#FFFDF8;border-left:3px solid #B8924A;padding:14px 18px;border-radius:0 10px 10px 0}
.muted{color:#6B6354}
.small{font-size:14px}
.kicker{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#B8924A;font-weight:700;margin:0}
ul,ol{padding-left:22px}
li{margin:4px 0}
.tbl{overflow-x:auto;margin:16px 0;border:1px solid #E8DCC4;border-radius:10px;background:#FFFDF8}
table{border-collapse:collapse;width:100%;font-size:15px}
th,td{padding:9px 12px;text-align:left;vertical-align:top;border-bottom:1px solid #EFE6D3}
th{background:#F1E7D2;font-weight:700}
tr:last-child td{border-bottom:0}
.note{font-size:15px;color:#6B6354;border-top:1px solid #E8DCC4;padding-top:14px;margin-top:28px}
.cta{background:#2C2620;color:#F6F1E6;border-radius:14px;padding:22px 22px 18px;margin:30px 0}
.cta h2{color:#E8C77D;margin-top:0}
.cta a{color:#E8C77D}
.btn{display:inline-block;background:#B8924A;color:#fff!important;text-decoration:none;font-weight:700;padding:12px 22px;border-radius:999px;margin-top:4px}
.btn:hover{background:#8F6F33}
.faq details{background:#FFFDF8;border:1px solid #E8DCC4;border-radius:10px;padding:12px 16px;margin:10px 0}
.faq summary{font-weight:700;cursor:pointer}
.faq details p{margin:10px 0 0}
.book-mini{display:flex;gap:16px;align-items:center;background:#FFFDF8;border:1px solid #E8DCC4;border-radius:12px;padding:14px;margin:28px 0}
.book-mini img{width:72px;height:auto;border-radius:4px;box-shadow:0 2px 8px rgba(44,38,32,.2)}
.book-mini p{margin:2px 0}
.bt{font-weight:700}
.also ul{padding-left:20px}
.cards{display:grid;gap:14px;margin-top:20px}
.card{display:block;background:#FFFDF8;border:1px solid #E8DCC4;border-radius:12px;padding:16px 18px;text-decoration:none;color:#2C2620}
.card:hover{border-color:#B8924A}
.card h2{margin:0 0 6px;font-size:23px}
.card p{margin:0 0 8px;color:#6B6354;font-size:15px}
.more{font-weight:700;color:#8F6F33;font-size:15px}
.book-head{display:flex;gap:24px;align-items:flex-start;flex-wrap:wrap}
.book-head img{width:200px;max-width:100%;height:auto;border-radius:6px;box-shadow:0 6px 22px rgba(44,38,32,.25)}
.book-head>div{flex:1;min-width:220px}
.price{font:600 28px/1.2 "Cormorant Garamond",Georgia,serif;color:#2C2620;margin:6px 0 12px}
.shelf{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:20px;margin-top:22px}
.shelf-item{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:#2C2620}
.shelf-item img{width:100%;height:auto;border-radius:5px;box-shadow:0 4px 16px rgba(44,38,32,.2);margin-bottom:6px}
.shelf-item .price{font-size:20px;margin:0}
.foot{border-top:1px solid #E8DCC4;background:#FFFDF8;font-size:14px;color:#6B6354}
.foot .wrap{padding-block:16px}

/* ── книжный магазин ── */
main.wide{max-width:1040px}
.btn-lg{display:block;text-align:center;font-size:18px;padding:15px 22px}
.btn-ghost{display:inline-block;border:1.5px solid #B8924A;color:#8F6F33;text-decoration:none;font-weight:700;padding:10px 18px;border-radius:999px;text-align:center}
.btn-ghost:hover{background:#FFFDF8;color:#2C2620}
.bk-hero{display:grid;grid-template-columns:minmax(200px,300px) 1fr;gap:36px;align-items:start}
.bk-cover{display:flex;flex-direction:column;gap:14px;position:sticky;top:16px}
.bk-cover img{width:100%;height:auto;border-radius:6px;box-shadow:0 10px 30px rgba(44,38,32,.28)}
.bk-info h1{margin:6px 0 8px}
.by{color:#6B6354;font-size:15px;margin:0 0 14px}
.hook{font:500 23px/1.35 "Cormorant Garamond",Georgia,serif;color:#2C2620;margin:0 0 20px}
.buybox{background:#FFFDF8;border:1px solid #E8DCC4;border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:10px;max-width:420px;box-shadow:0 2px 10px rgba(44,38,32,.06)}
.buybox .price{font-size:38px;margin:0}
.fmt{color:#6B6354;font-size:14px;margin:0}
.trust{list-style:none;padding:0;margin:6px 0 0;font-size:14px;color:#6B6354}
.trust li{padding-left:22px;position:relative;margin:4px 0}
.trust li::before{content:"✓";position:absolute;left:0;color:#3F8F5B;font-weight:700}
.trust.inline{display:flex;flex-wrap:wrap;gap:4px 20px}
.tabs{display:flex;gap:6px;overflow-x:auto;margin:34px 0 0;padding:6px 0;border-bottom:1px solid #E8DCC4;position:sticky;top:0;background:#F6F1E6;z-index:5;scrollbar-width:none}
.tabs a{white-space:nowrap;text-decoration:none;font-weight:600;font-size:15px;padding:8px 12px;border-radius:999px}
.tabs a:hover{background:#FFFDF8}
.blk{max-width:760px;scroll-margin-top:60px}
.ticks{list-style:none;padding:0}
.ticks li{padding-left:26px;position:relative;margin:8px 0}
.ticks li::before{content:"✦";position:absolute;left:2px;color:#B8924A}
details.toc{background:#FFFDF8;border:1px solid #E8DCC4;border-radius:12px;padding:12px 18px}
details.toc summary{cursor:pointer;font-weight:700}
.toc-part{font-weight:700;margin:16px 0 4px;color:#2C2620}
.toc-list{margin:0;padding-left:20px}
.toc-list li{margin:3px 0;font-size:15.5px}
.badge{display:inline-block;font-size:11.5px;font-weight:700;letter-spacing:.03em;color:#3F8F5B;border:1px solid #3F8F5B;border-radius:999px;padding:0 8px;margin-left:6px;vertical-align:2px}
.frag-teaser .teaser{position:relative;max-height:300px;overflow:hidden;background:#FFFDF8;border:1px solid #E8DCC4;border-radius:12px;padding:6px 20px;margin:12px 0 16px;font-family:Georgia,"Times New Roman",serif;font-size:17.5px}
.frag-teaser .teaser::after{content:"";position:absolute;left:0;right:0;bottom:0;height:110px;background:linear-gradient(rgba(255,253,248,0),#FFFDF8)}
.frag-ch{font-weight:700;font-family:Manrope,sans-serif;color:#8F6F33}
.basis{background:#FFFDF8;border:1px solid #E8DCC4;border-left:4px solid #B8924A;border-radius:12px;padding:4px 22px 14px;margin-top:34px}
.basis dt{font-weight:700;margin-top:14px;color:#2C2620}
.basis dd{margin:4px 0 0}
.bundle{display:flex;gap:20px;align-items:center;background:#2C2620;color:#F6F1E6;border-radius:14px;padding:20px 22px;margin:36px 0;max-width:760px}
.bundle img{width:90px;height:auto;border-radius:4px;flex:none}
.bundle h2{color:#E8C77D;margin:0 0 6px}
.bundle p{margin:0 0 10px}
.sticky-buy{display:none}
@media (max-width:720px){
  .bk-hero{grid-template-columns:1fr;gap:18px}
  .bk-cover{position:static;align-items:center}
  .bk-cover img{width:62%;max-width:240px}
  .buybox{max-width:none}
  .hook{font-size:21px}
  .sticky-buy{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:20;gap:10px;align-items:center;justify-content:space-between;background:#FFFDF8;border-top:1px solid #E8DCC4;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));box-shadow:0 -4px 14px rgba(44,38,32,.1)}
  .sticky-buy .btn{margin:0;padding:11px 18px;white-space:nowrap}
  .sb-t{font-weight:700;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body{padding-bottom:70px}
  .bundle{flex-direction:column;align-items:flex-start}
}

/* витрина */
.store-head .lead{max-width:760px}
.start-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.start-item{display:flex;flex-direction:column;gap:4px;background:#FFFDF8;border:1px solid #E8DCC4;border-radius:12px;padding:14px 16px;text-decoration:none;color:#2C2620}
.start-item:hover{border-color:#B8924A}
.start-who{font-weight:700}
.start-book{color:#8F6F33;font-weight:600}
.featured{display:flex;gap:28px;align-items:center;background:#2C2620;color:#F6F1E6;border-radius:16px;padding:24px;margin:34px 0}
.featured img{width:200px;max-width:40vw;height:auto;border-radius:6px;box-shadow:0 10px 30px rgba(0,0,0,.4);flex:none}
.featured h2{margin:4px 0 10px}
.featured h2 a{color:#E8C77D;text-decoration:none}
.featured .price{color:#F6F1E6}
.featured .btn-ghost{color:#E8C77D;border-color:#E8C77D}
.featured .btn-ghost:hover{background:transparent;color:#fff}
.save{color:#E8C77D;font-weight:600}
.bcards{display:grid;gap:18px}
.bcard{display:grid;grid-template-columns:150px 1fr;gap:22px;background:#FFFDF8;border:1px solid #E8DCC4;border-radius:14px;padding:18px}
.bcard-cover img{width:100%;height:auto;border-radius:5px;box-shadow:0 6px 18px rgba(44,38,32,.22)}
.bcard h2{margin:4px 0 8px;font-size:26px}
.bcard h2 a{text-decoration:none;color:#8F6F33}
.bcard-hook{margin:0 0 8px}
.bcard-buy{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:12px}
.bcard-buy .price{margin:0 6px 0 0;font-size:28px}
.bcard-buy .btn{margin:0}
@media (max-width:620px){
  .bcard{grid-template-columns:96px 1fr;gap:14px;padding:14px}
  .bcard h2{font-size:22px}
  .featured{flex-direction:column;align-items:flex-start}
}

/* читалка фрагмента */
.frag-head{display:flex;gap:16px;align-items:center;margin-bottom:10px}
.frag-head img{width:88px;height:auto;border-radius:4px;box-shadow:0 4px 12px rgba(44,38,32,.25)}
.frag-head h1{margin:2px 0 4px;font-size:clamp(26px,5vw,34px)}
.reader{font-family:Georgia,"Times New Roman",serif;font-size:18px;line-height:1.7}
.reader h2{font-size:clamp(25px,5vw,32px);margin:0 0 6px}
.reader h3{font-family:Manrope,sans-serif;font-size:19px;color:#2C2620;margin:28px 0 8px}
.reader h4{font-family:Manrope,sans-serif;font-size:17px;margin:22px 0 6px}
.frag-chapter{background:#FFFDF8;border:1px solid #E8DCC4;border-radius:14px;padding:22px 24px;margin:22px 0}
.frag-chapter header{text-align:center;border-bottom:1px solid #E8DCC4;padding-bottom:14px;margin-bottom:18px}
.frag-part{text-align:center;margin:30px 0 0}
.reader blockquote{margin:16px 0;padding:6px 18px;border-left:3px solid #B8924A;background:#F6F1E6;border-radius:0 8px 8px 0}
.reader .law{padding-left:2.2em;text-indent:-2.2em}
.reader .law-n{display:inline-block;width:2.2em;text-indent:0;font-weight:700;color:#8F6F33}
.reader .tick{color:#B8924A}
.reader .notes{font-size:15px;border-top:1px solid #E8DCC4;margin-top:26px;padding-top:6px;color:#4a443a}
.reader .notes-title{font-size:16px}
.portrait{margin:0 auto 18px;max-width:280px;text-align:center}
.portrait img{width:100%;height:auto;border-radius:8px}
.portrait figcaption{font-size:13px;color:#6B6354;font-family:Manrope,sans-serif}
.price.light{color:#F6F1E6}
@media (max-width:620px){.frag-chapter{padding:16px 14px}.reader{font-size:17px}}
