.cms-downloads .page-main { max-width: none; padding: 0; }

.plf-downloads {
    position: relative; overflow: hidden;
    padding: clamp(3.5rem, 7vw, 6.75rem) 1.5rem;
    color: #2b2b2b;
    background: radial-gradient(circle at 9% 13%, rgba(231,207,181,.28), transparent 28rem), radial-gradient(circle at 92% 84%, rgba(222,199,181,.22), transparent 27rem), #fffaf6;
}
.plf-downloads::before {
    position: absolute; top: -7rem; right: -6rem; width: 23rem; height: 23rem;
    border: 1px solid rgba(123,74,63,.08); border-radius: 50%;
    box-shadow: inset 0 0 0 2.5rem rgba(255,255,255,.16), inset 0 0 0 5rem rgba(123,74,63,.025);
    content: ""; pointer-events: none;
}
.plf-downloads__inner { position: relative; z-index: 1; width: min(100%,70rem); margin: 0 auto; }
.plf-downloads__intro { max-width: 47rem; margin: 0 auto; text-align: center; }
.plf-downloads__intro > p:first-child { margin: 0; color: #7b4a3f; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.plf-downloads__intro h1 { margin: 1rem 0 0; color: #231f20; font-family: "Tinos","Noto Serif",Georgia,serif; font-size: clamp(2.6rem,5vw,4.25rem); font-weight: 400; line-height: 1.02; letter-spacing: -.025em; }
.plf-downloads__intro > p:last-child { max-width: 43rem; margin: 1.35rem auto 0; color: #5b4a3f; font-size: clamp(1rem,1.5vw,1.13rem); line-height: 1.7; }

.plf-downloads__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; margin-top: clamp(2.5rem,5vw,4rem); }
.plf-download-card {
    position: relative; display: flex; min-height: 23rem; flex-direction: column; padding: clamp(1.75rem,4vw,2.5rem); overflow: hidden;
    border: 1px solid #e6d6c3; border-radius: 14px; background: rgba(255,255,255,.96);
    box-shadow: 0 16px 48px rgba(43,43,43,.075); transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.plf-download-card::after { position: absolute; top: -3.25rem; right: -3.25rem; width: 10rem; height: 10rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%,rgba(123,74,63,.12),rgba(123,74,63,.025) 55%,transparent 56%); content: ""; pointer-events: none; }
.plf-download-card:hover { transform: translateY(-3px); border-color: #d4bcaa; box-shadow: 0 22px 58px rgba(43,43,43,.11); }
.plf-download-card__icon { display: grid; width: 3.25rem; height: 3.25rem; place-items: center; border-radius: 50%; color: #7b4a3f; background: #f3e8df; }
.plf-download-card__icon svg { width: 1.45rem; height: 1.45rem; }
.plf-download-card > p:first-of-type { margin: 1.7rem 0 0; color: #8b5d50; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.plf-download-card h2 { margin: .75rem 0 0; color: #231f20; font-family: "Tinos","Noto Serif",Georgia,serif; font-size: clamp(1.8rem,3vw,2.25rem); font-weight: 400; line-height: 1.15; }
.plf-download-card > p:last-of-type { flex: 1; margin: 1rem 0 0; color: #5b4a3f; font-size: 1rem; line-height: 1.65; }
.plf-download-card__button,
.plf-download-modal__form button[type="submit"] { display: inline-flex; min-height: 3.25rem; align-items: center; justify-content: center; margin-top: 1.75rem; padding: .8rem 1.2rem; border: 0; border-radius: 10px; color: #fff; background: #7b4a3f; box-shadow: 0 8px 20px rgba(123,74,63,.16); font: inherit; font-weight: 700; cursor: pointer; transition: background .2s ease,box-shadow .2s ease,transform .2s ease; }
.plf-download-card__button:hover,
.plf-download-modal__form button[type="submit"]:hover { transform: translateY(-1px); color: #fff; background: #663c33; box-shadow: 0 10px 24px rgba(123,74,63,.22); }
.plf-downloads__grid + p { margin: 2rem auto 0; color: #6b5a52; font-size: .9rem; line-height: 1.6; text-align: center; }

.plf-download-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(24,19,17,.58); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.plf-download-modal.hidden { display: none; }
.plf-download-modal__panel { position: relative; width: min(100%,34rem); max-height: calc(100vh - 2rem); padding: clamp(1.5rem,5vw,2.5rem); overflow-y: auto; border: 1px solid rgba(123,74,63,.12); border-radius: 14px; color: #2b2b2b; background: #fff; box-shadow: 0 24px 80px rgba(20,15,13,.3); animation: plf-download-modal-in .2s ease-out; }
.plf-download-modal__panel > div:first-child { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.plf-download-modal__panel > div:first-child p { margin: 0; color: #7b4a3f; font-size: .73rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.plf-download-modal__panel h2 { margin: .55rem 0 0; color: #231f20; font-family: "Tinos","Noto Serif",Georgia,serif; font-size: clamp(2rem,5vw,2.55rem); font-weight: 400; line-height: 1.08; }
.plf-download-modal__close { display: grid; width: 2.5rem; height: 2.5rem; flex: 0 0 auto; place-items: center; margin: -.35rem -.35rem 0 0; padding: 0; border: 0; border-radius: 50%; color: #6b5a52; background: #f7f1ec; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.plf-download-modal__close:hover { color: #231f20; background: #eee2d8; }
[data-plf-download-selection] { margin: 1rem 0 0; padding: .85rem 1rem; border-left: 3px solid #b88672; border-radius: 0 7px 7px 0; color: #5b4a3f; background: #fff8f2; font-weight: 600; }
.plf-download-modal__form { margin-top: 1.4rem; }
.plf-download-modal__form > label:first-of-type { display: block; margin-bottom: .45rem; color: #4b403b; font-size: .9rem; font-weight: 600; }
.plf-download-modal__form input[type="email"] { box-sizing: border-box; width: 100%; height: 3.25rem; padding: .75rem .9rem; border: 1px solid #d8c6b8; border-radius: 8px; color: #2b2b2b; background: #fff; font: inherit; outline: none; transition: border-color .2s ease,box-shadow .2s ease; }
.plf-download-modal__form input[type="email"]:focus { border-color: #9d6d5c; box-shadow: 0 0 0 3px rgba(123,74,63,.12); }
.plf-download-modal__form > label:last-of-type { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1rem; color: #5b4a3f; font-size: .87rem; line-height: 1.55; cursor: pointer; }
.plf-download-modal__form input[type="checkbox"] { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; margin: .15rem 0 0; accent-color: #7b4a3f; }
.plf-download-modal__form button[type="submit"] { width: 100%; }
.plf-download-modal__panel > p:last-child { margin: 1.1rem 0 0; color: #776961; font-size: .76rem; line-height: 1.5; }
.plf-download-modal__panel > p:last-child a { color: #5c3b32; text-decoration: underline; text-underline-offset: 2px; }

@keyframes plf-download-modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 720px) {
    .plf-downloads { padding: 3.5rem 1rem; }
    .plf-downloads__grid { grid-template-columns: 1fr; }
    .plf-download-card { min-height: 0; }
    .plf-download-modal { align-items: flex-end; padding: .75rem; }
    .plf-download-modal__panel { width: 100%; max-height: calc(100vh - 1.5rem); border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .plf-download-card,.plf-download-card__button,.plf-download-modal__panel { animation: none; transition: none; }
}
