/* КОМПАС 2.8 — „Сърцето на планината“. Самостоятелни класове, без промени по старите стилове. */
:root{color-scheme:light;--pine:#204e39;--deep:#123f31;--fern:#428557;--lime:#d9e8a6;--sand:#fff7e6;--ink:#244531;--sun:#ffd777;--shadow:0 12px 35px rgba(35,77,44,.13)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body.heart-page,body.heart-admin{margin:0;background:#fbf7e9;color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;line-height:1.55}a{color:inherit}button,select,textarea,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible,textarea:focus-visible,input:focus-visible{outline:3px solid #dc791a;outline-offset:3px}.heart-shell{max-width:1230px;margin:auto;padding-left:clamp(18px,3vw,36px);padding-right:clamp(18px,3vw,36px)}.heart-skip{position:absolute;top:-100px;left:16px;z-index:999;background:#fff;padding:12px}.heart-skip:focus{top:12px}.heart-top{height:auto;min-height:96px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px max(4vw,20px);background:#fffcf4;border-bottom:1px solid #d9e4ca;position:relative;z-index:4}.heart-brand{display:flex;align-items:center;gap:14px;text-decoration:none}.heart-brand img{object-fit:contain}.heart-brand strong{display:block;color:#164b35;font-size:1.35rem;letter-spacing:.04em}.heart-brand small{font-size:.77rem;color:#5b745c}.heart-top nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.heart-top nav a{color:#285940;text-decoration:none;font-size:.9rem;font-weight:760;padding:9px 13px;border-radius:22px}.heart-top nav a:hover,.heart-top nav a:focus-visible{background:#e9f2da}.heart-kicker{display:inline-block;font-size:.76rem;font-weight:950;letter-spacing:.14em;color:#547e4e}.heart-hero{background:radial-gradient(circle at 78% 32%,#e4f5bc 0,transparent 35%),linear-gradient(145deg,#fff8e6,#e9f6df 85%);border-bottom:4px solid #d6e8bd;overflow:hidden}.heart-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.93fr);gap:clamp(25px,5vw,70px);align-items:center;min-height:590px;padding-top:40px;padding-bottom:45px}.heart-hero h1{font-size:clamp(2.55rem,5.5vw,5.2rem);line-height:1.08;letter-spacing:-.055em;color:var(--deep);max-width:690px;margin:16px 0}.heart-hero h1 em{font-style:normal;color:#e97931;display:inline-block;position:relative;white-space:nowrap}.heart-hero h1 em:after{content:"";position:absolute;bottom:0;left:0;right:0;height:8px;border-radius:99px;background:#ffdc7b;transform:rotate(-2deg);z-index:0;opacity:.8}.heart-hero-copy>p{font-size:clamp(1.08rem,1.8vw,1.32rem);max-width:550px;color:#57705b}.heart-hero-stats{display:flex;gap:10px;flex-wrap:wrap;margin:26px 0}.heart-hero-stats span{padding:10px 17px;background:#fff;box-shadow:0 4px 0 #b5d3a7;border-radius:16px;color:#295d45;font-weight:750}.heart-hero-buttons{display:flex;flex-wrap:wrap;gap:10px}.heart-main-link,.heart-alt-link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:11px 22px;border-radius:15px;text-decoration:none;border:none;font-weight:900}.heart-main-link{background:#276a48;color:#fff;box-shadow:0 5px 0 #174830}.heart-alt-link{background:#ffe1a0;color:#5e4825;box-shadow:0 5px 0 #d7b96e}.heart-main-link:hover,.heart-alt-link:hover{transform:translateY(-2px)}.heart-fox-corner{position:relative;text-align:center;isolation:isolate}.heart-fox-corner:before{content:"";position:absolute;width:70%;aspect-ratio:1;top:4%;left:15%;border-radius:50%;background:radial-gradient(#fff,#e2eeba);border:3px dashed #b5d0ad;z-index:-1}.heart-fox-corner>img{max-width:min(95%,370px);height:auto;display:block;margin:0 auto;filter:drop-shadow(0 12px 3px #153c2524);animation:heart-fox-float 9s ease-in-out infinite}.heart-butterfly{position:absolute;font-size:2rem;pointer-events:none;z-index:2;animation:heart-butterfly 12s ease-in-out infinite}.heart-butterfly-one{top:0;left:12%}.heart-butterfly-two{top:14%;right:9%;animation-delay:-5s}.heart-fox-talk{max-width:490px;margin:-6px auto 0;background:#fff;border:2px solid #b2d5a4;border-radius:20px;padding:18px 20px;box-shadow:var(--shadow);transform:rotate(-1deg);text-align:left}.heart-fox-talk p{margin:8px 0 12px}.heart-fox-label{color:#1f6845;font-weight:900}.heart-fox-talk button{border:0;border-radius:10px;background:#ffdd7b;color:#4e421e;font-weight:850;padding:9px 13px}.heart-fox-extra{padding:10px;border-radius:10px;background:#e8f4df}.heart-tree-section{padding:76px 0 68px;background:linear-gradient(#f2fbec,#e0f1d8)}.heart-section-title{text-align:center;max-width:780px;margin:auto}.heart-section-title h2,.heart-panel-heading h2{font-size:clamp(2rem,4vw,3.5rem);letter-spacing:-.04em;color:#1b563e;line-height:1.08;margin:13px 0}.heart-section-title p,.heart-panel-heading p{font-size:1.05rem;color:#58715a}.heart-tree-stage{max-width:950px;min-height:530px;margin:34px auto 0;position:relative;background:radial-gradient(ellipse at 50% 93%,#93cb75,transparent 42%),linear-gradient(#b9e8f4,#def5e1 65%,#bde8ac);border:8px solid #fff;border-radius:35px;box-shadow:0 12px 0 #b0d1a5,0 23px 45px #274c2c22;overflow:hidden}.heart-tree-picture{width:min(100%,670px);height:490px;position:relative;margin:auto}.heart-tree-illustration{width:100%;height:100%;display:block}.heart-tree-sky{position:absolute;inset:15px 35px auto;display:flex;justify-content:space-between;pointer-events:none;color:#fff;font-size:3rem}.heart-tree-sky span{animation:heart-cloud 18s ease-in-out infinite}.heart-tree-sky span+span{animation-delay:-7s}.heart-tree-ground{position:absolute;bottom:-8px;left:0;right:0;display:flex;justify-content:space-around;font-size:2.4rem;z-index:1;pointer-events:none}.heart-leaf{position:absolute;transform:translate(-50%,-50%) rotate(-15deg);font-size:clamp(22px,3.2vw,31px);display:flex;align-items:center;justify-content:center;width:41px;height:41px;border-radius:50%;color:#fff;text-decoration:none;filter:hue-rotate(var(--leaf-hue));z-index:3;transition:transform .3s,filter .3s}.heart-leaf:hover,.heart-leaf:focus-visible{transform:translate(-50%,-50%) scale(1.45) rotate(10deg);background:#fff9d1;z-index:10;box-shadow:0 4px 14px #315c364a}.heart-tree-center{position:absolute;top:43%;left:50%;transform:translate(-50%,-50%);width:min(330px,80%);padding:18px;border:3px solid #fff;border-radius:20px;background:#ffffedf2;color:#2a593f;font-weight:900;text-align:center;z-index:5}.heart-tree-foot{text-align:center;margin:25px 0;font-size:1.05rem;font-weight:850}.heart-tree-foot a{color:#2d754d;margin-left:9px}.heart-features{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding-top:80px;padding-bottom:65px}.heart-feature{text-decoration:none;display:flex;flex-direction:column;min-height:275px;padding:27px 22px;border:3px solid #224d37;border-radius:24px;box-shadow:7px 9px 0 #224d37;transition:transform .22s,box-shadow .22s}.heart-feature:hover{transform:translateY(-5px);box-shadow:9px 13px 0 #224d37}.heart-feature h3{color:#1f4b37;line-height:1.2;font-size:1.35rem;margin:8px 0}.heart-feature p{font-size:.95rem;flex:1;margin:5px 0 14px}.heart-feature-icon{font-size:3rem}.heart-feature-action{font-weight:900;font-size:.86rem;text-decoration:underline;text-underline-offset:4px}.heart-feature-orange{background:#ffdfbe}.heart-feature-blue{background:#cdecf3}.heart-feature-purple{background:#e5dcf8}.heart-feature-green{background:#dff0c7}.heart-panel{margin-bottom:52px}.heart-panel:not(.heart-book){background:#fff;border:2px solid #e1e7d4;border-radius:28px;padding-top:34px;padding-bottom:33px;box-shadow:var(--shadow)}.heart-panel-heading{text-align:left;margin-bottom:25px}.heart-panel-heading h2{font-size:clamp(1.7rem,3vw,2.6rem)}.heart-letter-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.heart-letter,.heart-letter-empty{display:flex;gap:14px;align-items:flex-start;background:#fff9e8;border-radius:18px;border:2px solid #f1e0b4;padding:18px}.heart-letter>span{font-size:2rem}.heart-letter h3{margin:0 0 8px;color:#6c502b}.heart-letter p{white-space:normal;margin:0}.heart-letter-empty{display:block;color:#4c5f3d}.heart-places-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.heart-place{text-decoration:none;border-radius:18px;border:2px solid #bcdac0;background:#eaf8ea;display:flex;align-items:center;gap:12px;padding:15px;min-height:78px}.heart-place>span{font-size:1.6rem}.heart-place strong{flex:1;overflow-wrap:anywhere}.heart-place small{font-weight:750;color:#447350}.heart-place:hover{background:#ddf0d9}.heart-empty{background:#f2f6e9;padding:18px;border-radius:16px}.heart-empty a{color:#1d7549;font-weight:800}.heart-capsule-form{background:#eaf6e5;display:grid;gap:15px;padding:20px;border-radius:18px;max-width:750px}.heart-capsule-form label{display:grid;gap:7px;font-weight:800}.heart-capsule-form select,.heart-capsule-form textarea{padding:12px;border:2px solid #a0c5aa;border-radius:12px;background:#fff;color:#214632}.heart-capsule-form button{justify-self:start}.heart-open-capsules{margin-top:25px}.heart-open-capsules h3{color:#27664a}.heart-open-capsules blockquote{background:#fff5d7;border-left:5px solid #e8bb5e;padding:15px;margin:12px 0;border-radius:0 12px 12px 0}.heart-open-capsules small{display:block;color:#647c63;margin-top:9px}.heart-success{background:#e0f7e4;color:#1d6b37;border:2px solid #88cf97;border-radius:14px;padding:14px}.heart-error{background:#ffe1dc;color:#852d25;border:2px solid #e59b8d;border-radius:14px;padding:14px}.heart-book{padding-top:35px;padding-bottom:70px}.heart-book-list{display:grid;gap:16px}.heart-memory-card{display:flex;gap:20px;align-items:flex-start;padding:25px;border-radius:22px;background:#fffefa;border:2px solid #cfe2cd;box-shadow:0 7px 22px #254f3220;scroll-margin-top:25px}.heart-memory-card:target{box-shadow:0 0 0 5px #f9d86c}.heart-chapter-no{background:#f9da79;color:#5c4822;border-radius:13px;white-space:nowrap;padding:9px 11px;font-size:.8rem;font-weight:950;letter-spacing:.05em}.heart-memory-body{min-width:0;flex:1}.heart-memory-body h3{font-size:clamp(1.2rem,2.2vw,1.7rem);margin:0 0 7px;color:#20553b}.heart-memory-meta{color:#527054;font-size:.9rem}.heart-report{white-space:normal;overflow-wrap:anywhere}.heart-report-muted{color:#7c8376;font-style:italic}.heart-chapter-photo{display:block;max-width:390px;max-height:280px;width:100%;object-fit:cover;border-radius:16px;margin:15px 0}.heart-chapter-link{color:#1d754c;font-weight:800}.heart-print{border:0;border-radius:13px;background:#ffdf8a;color:#453c21;font-weight:850;padding:10px 16px}.heart-footer{text-align:center;background:#174c38;color:#f7f6df;padding:34px 12px}.heart-footer a{color:#ffe59c}.heart-footer p{margin:10px 0 0}.heart-page [hidden],.heart-admin [hidden]{display:none!important}
/* Admin: isolated from the public theme. */
.heart-admin{background:#eef4e8}.heart-admin-shell{max-width:1040px;margin:auto;padding:22px 20px 80px}.heart-admin-links{display:flex;gap:14px;flex-wrap:wrap;margin:0 0 25px}.heart-admin-links a{color:#1b6948;font-weight:850}.heart-admin header h1{font-size:clamp(2rem,3.5vw,3rem);color:#1a4d37;margin:9px 0}.heart-admin header p{font-size:1.07rem;color:#5a735d}.heart-admin-card{background:#fffefa;border:2px solid #d3e3cc;box-shadow:var(--shadow);padding:clamp(16px,3vw,30px);border-radius:24px;margin:22px 0}.heart-admin-card h2{font-size:1.55rem;margin:0 0 12px;color:#245d41}.heart-admin-card form:not(.heart-admin-letter){display:grid;gap:13px}.heart-admin-card button{background:#27714c;border:0;color:#fff;font-weight:850;border-radius:12px;padding:11px 16px;width:fit-content}.heart-admin-card select,.heart-admin-card input:not([type=checkbox]):not([type=hidden]),.heart-admin-card textarea{width:100%;background:#fff;border:2px solid #bbd2bc;border-radius:12px;padding:11px;color:#2b4d38}.heart-admin-card label{display:grid;gap:7px;font-weight:800}.heart-admin-card .heart-inline{display:flex;align-items:center;gap:10px}.heart-admin-card .heart-admin-minor{background:#e7f2e6;color:#235d3d;border:1px solid #aac9aa}.heart-admin-stats{display:flex;flex-wrap:wrap;gap:12px}.heart-admin-stats span{display:inline-block;padding:11px 16px;background:#f1f7e8;border-radius:12px}.heart-admin-tasks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0}.heart-admin-tasks a{padding:12px;background:#eef8e7;border:1px solid #c5dcc0;border-radius:12px;text-decoration:none;font-weight:760}.heart-admin-tasks span{display:inline-block;width:28px}.heart-progress{height:13px;overflow:hidden;background:#e1e9d6;border-radius:12px;margin-top:19px}.heart-progress-bar{background:#62b97a;height:100%}.heart-subtle{color:#627766;font-size:.91rem}.heart-admin-form{padding-top:12px}.heart-admin-letter{border-top:1px solid #dce7d4;padding:10px 0;display:flex;justify-content:space-between;gap:12px;align-items:center}.heart-capsule-review{background:#fff8e4;border:1px solid #eddbab;border-radius:16px;padding:15px;margin-bottom:12px}.heart-capsule-review blockquote{margin:8px 0 16px;border-left:3px solid #e2ad53;padding-left:12px}.heart-capsule-review div{display:flex;gap:12px}
@keyframes heart-fox-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-9px) rotate(1deg)}}@keyframes heart-butterfly{0%,100%{transform:translate(0,0) rotate(-7deg)}33%{transform:translate(24px,-17px) rotate(15deg)}66%{transform:translate(-15px,13px) rotate(-10deg)}}@keyframes heart-cloud{0%,100%{transform:translateX(-15px)}50%{transform:translateX(20px)}}@keyframes heart-leaf-wave{0%,100%{rotate:-3deg}50%{rotate:5deg}}
@media(max-width:960px){.heart-features{grid-template-columns:repeat(2,minmax(0,1fr))}.heart-hero-grid{gap:20px}.heart-places-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.heart-top{padding:12px 15px;gap:8px}.heart-brand small{display:none}.heart-top nav a{padding:7px;font-size:.8rem}.heart-hero-grid{grid-template-columns:1fr;padding-top:35px;padding-bottom:40px}.heart-hero h1{font-size:clamp(2.7rem,10vw,4rem)}.heart-fox-corner{max-width:480px;margin:auto}.heart-tree-section{padding-top:52px}.heart-tree-stage{min-height:0;border-width:4px}.heart-tree-picture{height:auto;aspect-ratio:670/490}.heart-tree-stage .heart-tree-ground{font-size:1.4rem}.heart-tree-sky{font-size:1.6rem}.heart-places-grid,.heart-letter-list{grid-template-columns:1fr}.heart-panel{margin-bottom:30px}.heart-memory-card{flex-direction:column;gap:12px}.heart-admin-tasks{grid-template-columns:1fr}.heart-tree-foot a{display:block;margin:7px}}@media(max-width:440px){.heart-top nav a{font-size:.76rem}.heart-features{grid-template-columns:1fr}.heart-feature{min-height:210px}.heart-hero-stats span{font-size:.86rem}.heart-tree-picture .heart-leaf{font-size:19px;width:30px;height:30px}.heart-tree-center{font-size:.82rem;padding:9px}.heart-fox-talk{padding:15px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.heart-fox-corner>img,.heart-butterfly,.heart-tree-sky span,.heart-leaf{animation:none!important}.heart-main-link:hover,.heart-alt-link:hover,.heart-feature:hover{transform:none}}
@media print{body.heart-page{background:#fff;color:#000}.heart-top,.heart-hero,.heart-tree-section,.heart-features,#letters,#places,#capsule,.heart-footer,.heart-print,.heart-chapter-link{display:none!important}.heart-book{margin:0;padding:0;max-width:none}.heart-book .heart-panel-heading{margin:0 0 15px}.heart-memory-card{display:block;box-shadow:none;border:1px solid #777;break-inside:avoid-page;margin-bottom:20px}.heart-chapter-photo{max-height:180px}}
