.mdpw-wrap{--mdpw-ink:#25332e;--mdpw-green:#255944;--mdpw-gold:#b58a45;--mdpw-rule:#e7e5df;color:var(--mdpw-ink);font-family:inherit;max-width:1100px;margin:20px auto 55px;padding:0 22px;font-size:16px;line-height:1.7}.mdpw-wrap *{box-sizing:border-box}.mdpw-wrap h1,.mdpw-wrap h2{color:#243a30;font-weight:700;line-height:1.24}.mdpw-wrap h1{font-size:clamp(29px,3.5vw,47px);margin:8px 0 14px}.mdpw-wrap h2{font-size:clamp(24px,2.7vw,32px);margin:0 0 18px}.mdpw-wrap p{margin:12px 0}.mdpw-hero{display:grid;grid-template-columns:minmax(200px,290px) minmax(0,1fr);align-items:start;gap:46px;padding:37px 0 44px;border-bottom:1px solid var(--mdpw-rule)}.mdpw-cover{max-width:290px;border-radius:6px;overflow:hidden;box-shadow:0 16px 42px #1c27252b;background:#f2eee4;min-height:360px}.mdpw-cover img{width:100%;height:auto;display:block}.mdpw-cover-placeholder{min-height:390px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:27px;background:linear-gradient(145deg,#e2d7be,#f9f3e7 55%,#d2c4a5);outline:2px solid #b9a681;outline-offset:-16px;color:#33443a}.mdpw-cover-placeholder span{font-size:32px;writing-mode:vertical-rl;letter-spacing:.15em;margin-bottom:24px}.mdpw-cover-placeholder strong{font-size:23px;line-height:1.4}.mdpw-kicker{font-size:12px;letter-spacing:.12em;color:#6b644f;font-weight:700}.mdpw-chinese{font-size:23px;color:#7b633f;margin:0 0 8px!important}.mdpw-subline{font-size:15px;color:#6b726c}.mdpw-link{display:inline-block;margin-top:12px;padding:11px 17px;border:1px solid var(--mdpw-green);border-radius:5px;color:var(--mdpw-green)!important;font-weight:700;text-decoration:none!important}.mdpw-link:hover{background:#f0f8f3}.mdpw-section{padding:40px 0;border-bottom:1px solid var(--mdpw-rule)}.mdpw-editions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.mdpw-editions>div{padding:22px 26px;border:1px solid #deded4;border-radius:10px;background:#f9f8f3;display:flex;flex-direction:column;align-items:flex-start;gap:5px}.mdpw-editions small{font-size:14px;color:#6d6b60}.mdpw-editions strong{font-size:clamp(24px,3vw,34px);line-height:1.4;color:#2b493b}.mdpw-editions span,.mdpw-muted{color:#6a6f6a;font-size:14px}.mdpw-steps{list-style:decimal;margin:0 0 0 20px;padding:0}.mdpw-steps li{padding:8px 0 8px 10px}.mdpw-steps li::marker{font-weight:700;color:var(--mdpw-green)}.mdpw-important{padding:16px 19px;border-left:3px solid var(--mdpw-gold);background:#f8f5ec}.mdpw-toc{border:1px solid #dcded6;border-radius:10px;overflow:hidden;margin-top:22px}.mdpw-toc-single,.mdpw-toc-group summary{display:flex;gap:20px;justify-content:space-between;align-items:flex-start;padding:11px 17px;border-bottom:1px solid #edeee9;background:#fff;font-size:15px}.mdpw-toc-single span:last-child,.mdpw-toc-group summary .mdpw-toc-page,.mdpw-toc-child>span:last-child{white-space:nowrap;color:#788078;font-size:13px}.mdpw-toc-group summary{cursor:pointer;list-style:none;font-weight:650;padding-left:32px;position:relative}.mdpw-toc-group summary::-webkit-details-marker{display:none}.mdpw-toc-group summary:before{content:'+';position:absolute;left:12px;top:11px;color:var(--mdpw-green)}.mdpw-toc-group[open] summary{background:#f4f7f2}.mdpw-toc-group[open] summary:before{content:'−'}.mdpw-toc-child{display:flex;gap:20px;justify-content:space-between;padding:7px 16px 7px 37px;font-size:14px;border-bottom:1px dotted #e9ebe7;line-height:1.4}.mdpw-toc-child.mdpw-depth-2{padding-left:62px;color:#586359}.mdpw-toc-single:last-child,.mdpw-toc-child:last-child{border-bottom:0}.mdpw-form-section{max-width:850px;border-bottom:0}.mdpw-form{margin-top:22px}.mdpw-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 20px}.mdpw-form label{display:block;font-size:15px;font-weight:600}.mdpw-form label span:not(.mdpw-consent span){color:#a93c2c}.mdpw-form input[type=text],.mdpw-form input[type=email],.mdpw-form input[type=tel],.mdpw-form input:not([type]){display:block;width:100%;border:1px solid #bfc9bf;border-radius:5px;background:white;padding:11px 12px;margin-top:4px;font-size:16px;box-shadow:none;min-height:46px}.mdpw-form input:focus-visible{outline:2px solid #347555;outline-offset:1px}.mdpw-form fieldset{border:1px solid #dfe3dc;border-radius:6px;margin:19px 0;padding:12px 18px}.mdpw-form legend{font-weight:700;padding:0 6px}.mdpw-form fieldset label{font-weight:400;margin:7px 0}.mdpw-form input[type=radio],.mdpw-form input[type=checkbox]{margin-right:8px;accent-color:var(--mdpw-green)}.mdpw-form .mdpw-consent{display:flex;align-items:flex-start;gap:6px;font-weight:400;font-size:13px;line-height:1.5;margin:18px 0}.mdpw-form .mdpw-consent input{margin-top:4px}.mdpw-form .mdpw-consent span{color:#4d534f}.mdpw-form button{border:0;background:var(--mdpw-green);color:white;font-size:16px;font-weight:700;border-radius:6px;padding:14px 27px;cursor:pointer}.mdpw-form button:hover{background:#153c2c}.mdpw-honey{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}.mdpw-alert{border-radius:5px;padding:13px 17px;margin:18px 0!important}.mdpw-success{background:#eff7ed;border:1px solid #b6d5b1}.mdpw-error{background:#fff1ee;border:1px solid #e5b8a6}.mdpw-shipping{max-width:800px}.mdpw-shipping h1{font-size:35px}
@media(max-width:700px){.mdpw-wrap{padding:0 15px;margin:12px auto 35px}.mdpw-hero{grid-template-columns:1fr;gap:23px;padding:22px 0 30px}.mdpw-cover{max-width:210px;min-height:0;margin:auto}.mdpw-cover-placeholder{min-height:285px}.mdpw-section{padding:27px 0}.mdpw-editions{grid-template-columns:1fr}.mdpw-form-grid{grid-template-columns:1fr}.mdpw-toc-single,.mdpw-toc-group summary{font-size:14px;padding-right:10px}.mdpw-toc-child{padding-right:10px;padding-left:22px}.mdpw-toc-child.mdpw-depth-2{padding-left:33px}}

/* Отдельный шаблон страницы без правой колонки и боковых виджетов. */
.mdpw-landing-main{display:block;width:100%;max-width:100%;margin:0 auto;clear:both;padding-top:72px}
.mdpw-landing-main .mdpw-wrap{box-sizing:border-box;max-width:1180px;width:100%;margin:30px auto 60px;padding:0 28px}
.mdpw-landing-main .mdpw-hero{grid-template-columns:minmax(240px,320px) minmax(0,1fr)}
.mdpw-edition-card .mdpw-sample{align-self:stretch;display:block;width:100%;max-width:330px;margin:16px auto 6px;border:1px solid #e1e1dc;border-radius:5px;background:#fff;overflow:hidden;box-shadow:0 5px 20px #1c272510}
.mdpw-edition-card .mdpw-sample img{display:block;width:100%;height:auto;aspect-ratio:675/956;object-fit:contain}
.mdpw-edition-card .mdpw-sample:focus-visible{outline:3px solid #255944;outline-offset:3px}
.mdpw-edition-card .mdpw-sample-caption{align-self:center;text-align:center;font-size:12px;color:#73796f}
.mdpw-checkout{max-width:830px}
@media(max-width:700px){.mdpw-landing-main{padding-top:56px}.mdpw-landing-main .mdpw-wrap{padding:0 16px;margin:12px auto 30px}.mdpw-landing-main .mdpw-hero{grid-template-columns:1fr}}

/* Safe offset for a sticky theme header and for anchor links. */
.mdpw-landing-main #zapis-na-pechat{scroll-margin-top:155px}
/* In-page enlargement with an explicit close control, backdrop click and Esc. */
.mdpw-edition-card .mdpw-sample{cursor:zoom-in}
.mdpw-lightbox{box-sizing:border-box;position:fixed;width:min(96vw,960px);max-width:96vw;max-height:94vh;max-height:94dvh;margin:auto;padding:14px;border:0;border-radius:12px;background:#fff;color:#243a30;box-shadow:0 24px 90px rgba(0,0,0,.4);overflow:hidden}
.mdpw-lightbox::backdrop{background:rgba(15,22,21,.82)}
.mdpw-lightbox-inner{display:flex;flex-direction:column;align-items:stretch;max-height:calc(94vh - 28px);max-height:calc(94dvh - 28px)}
.mdpw-lightbox-toolbar{display:flex;justify-content:flex-end;align-items:center;padding:0 2px 10px;flex:0 0 auto}
.mdpw-lightbox-close{display:inline-flex;gap:8px;align-items:center;justify-content:center;border:0;border-radius:6px;background:#255944;color:#fff;cursor:pointer;padding:8px 14px;font-size:15px;font-weight:700;line-height:1.4}
.mdpw-lightbox-close:hover,.mdpw-lightbox-close:focus-visible{background:#153c2c;color:white;outline-offset:2px}
.mdpw-lightbox-image{display:block;align-self:center;max-width:100%;max-height:calc(94vh - 82px);max-height:calc(94dvh - 82px);width:auto;height:auto;object-fit:contain}
@media(max-width:700px){.mdpw-lightbox{max-width:98vw;width:98vw;padding:10px}.mdpw-lightbox-close{font-size:14px}}

/* 2.8.9 — яркая кнопка чтения в начале и после оглавления */
.mdpw-wrap a.mdpw-link--read{
    display:inline-flex;align-items:center;justify-content:center;
    padding:15px 24px;border:2px solid #cb1f64;border-radius:9px;
    background:#cb1f64;color:#fff!important;
    font-size:17px;line-height:1.35;font-weight:750;
    text-decoration:none!important;box-shadow:0 6px 18px rgba(174,30,87,.21);
    transition:background .15s ease,box-shadow .15s ease,transform .15s ease;
}
.mdpw-wrap a.mdpw-link--read:hover,.mdpw-wrap a.mdpw-link--read:focus-visible{
    color:#fff!important;background:#a8134d;border-color:#a8134d;
    box-shadow:0 8px 23px rgba(174,30,87,.3);transform:translateY(-1px);
}
.mdpw-toc-read-action{display:flex;justify-content:center;margin:27px 0 2px;}
@media(max-width:700px){
    .mdpw-wrap a.mdpw-link--read{font-size:15px;padding:13px 16px;text-align:center;}
    .mdpw-toc-read-action a{width:100%;}
}

/* 2.8.10 — shipping fields are optional when choosing office pickup. */
.mdpw-checkout .mdpw-address-fields{margin-top:17px}
.mdpw-checkout .mdpw-address-fields[hidden]{display:none!important}
.mdpw-checkout .mdpw-delivery-method label{display:block}
