/*
Theme Name: Монастырская травница — Справочник
Description: Редакционная тема с ботаническими иллюстрациями и партнёрскими переходами.
Version: 1.7.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: travnica
*/
:root{--ink:#34423a;--muted:#525c55;--paper:#fbf8f2;--cream:#f4eee4;--line:#e1d8ca;--green:#47594c;--serif:Georgia,"Times New Roman",serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 system-ui,sans-serif}a{color:inherit}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #98722e;outline-offset:4px}img{max-width:100%;height:auto}h1,h2,h3{font-family:var(--serif);font-weight:500;line-height:1.08;margin:0 0 .45em}h1{font-size:clamp(2.65rem,6.4vw,6.4rem);letter-spacing:-.055em}h2{font-size:clamp(2rem,4.2vw,3.8rem);letter-spacing:-.04em}h3{font-size:1.65rem}p{margin:0 0 1em}small{font-size:.8rem}.wrap{width:min(1280px,100% - 80px);margin:auto}.skip{position:absolute;left:12px;top:-200px;background:white;padding:.7em;z-index:9}.skip:focus{top:8px}.header{border-bottom:1px solid var(--line)}.bar{min-height:83px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{font:500 1.25rem/1.03 var(--serif);display:flex;align-items:center;gap:11px;text-decoration:none}.brand img{width:36px}.nav{display:flex;gap:24px;align-items:center}.nav a,.foot a{text-underline-offset:5px}.nav a{text-decoration:none}.nav a:hover,.card:hover h3{text-decoration:underline;text-underline-offset:5px}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;text-decoration:none;border:1px solid transparent;border-radius:3px;padding:12px 20px;font:650 .9rem/1.3 system-ui;background:var(--green);color:white;min-height:46px}.button:hover{background:#315a46}.button.secondary{background:transparent;color:var(--ink);border-color:#8c9b87}.button.secondary:hover{background:#e2e7d9}.hero{display:grid;grid-template-columns:1fr .95fr;min-height:550px;margin:36px auto 0;background:#e8ecdf}.hero-copy{padding:clamp(28px,5vw,76px);align-self:center}.hero-copy p{max-width:37ch;color:#435548;font-size:1.1rem}.hero-media{position:relative;min-width:0;overflow:hidden;margin:0}.hero-media img{height:100%;width:100%;position:absolute;inset:0;object-fit:cover}.hero-media figcaption{position:absolute;right:14px;bottom:12px;background:#173529;color:#fff;padding:4px 9px;font-size:.72rem}.kicker{font-size:.76rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;margin-bottom:1.2rem;color:#52684e}.actions{display:flex;flex-wrap:wrap;gap:10px}.hero-copy small{display:block;margin-top:12px;color:var(--muted)}.catalog{padding:66px 0 70px}.section-head{border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:24px;display:flex;gap:22px;justify-content:space-between;align-items:end}.section-head h2,.section-head p{margin-bottom:0}.section-head p{max-width:32ch;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{display:flex;flex-direction:column;text-decoration:none;background:#fffdf7;border:1px solid var(--line);min-width:0}.card img{width:100%;aspect-ratio:2.1;object-fit:cover;background:#dfdfce}.card>div{padding:23px;display:flex;flex:1;flex-direction:column}.card p{color:var(--muted);font-size:.94rem}.card span{margin-top:auto;font-size:.84rem;font-weight:650}.article-head{background:#e8ecdf;margin-top:32px;padding:clamp(24px,6vw,72px)}.article-head h1{font-size:clamp(2.45rem,5.5vw,4.9rem);max-width:22ch}.article-head p{font-size:1.1rem;max-width:58ch}.article-layout{display:grid;grid-template-columns:minmax(0,740px) minmax(220px,1fr);gap:clamp(25px,6vw,80px);padding:42px 0 70px}.prose{overflow-wrap:anywhere}.prose h2{font-size:2.05rem;margin-top:1.3em}.prose h3{margin-top:1.25em}.prose a{text-underline-offset:4px}.prose :is(ul,ol){padding-left:1.55em}.prose li{margin:.45em 0}.notice{padding:20px 24px;background:#eee8da;border-left:3px solid #677651}.aside{align-self:start;border:1px solid var(--line);background:#fffdf7;padding:24px}.aside small{display:block;margin-top:11px;color:var(--muted)}.aside ul{padding-left:1.2em}.aside li{margin:.58em 0}.cta{padding:30px;background:var(--green);color:white;display:flex;justify-content:space-between;align-items:center;gap:20px}.cta h2{font-size:2rem;margin-bottom:.3em}.cta p{margin:0;color:#e4e9df}.cta .button{background:#f0e9d9;color:var(--ink);flex-shrink:0}.foot{margin-top:50px;padding:34px 0 55px;border-top:1px solid var(--line);color:var(--muted)}.foot .wrap{display:flex;justify-content:space-between;gap:28px}.foot p{max-width:61ch;margin:0}.mobile-cta{display:none}.listing{padding:35px 0 60px}.listing ul{padding-left:1.3em}.search-form{display:flex;flex-wrap:wrap;gap:8px}.search-form input[type=search]{border:1px solid #8c9b87;padding:10px;font:inherit;background:#fffdf7;max-width:100%}.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.content-nav a,.related a{display:inline-block;margin:.26em 0}.cover{width:100%;aspect-ratio:3;object-fit:cover;margin-bottom:18px}.alignwide,.alignfull{max-width:100%}
@media(max-width:960px){.wrap{width:calc(100% - 44px)}.nav{gap:14px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{min-height:460px}}
@media(max-width:700px){body{padding-bottom:72px}.wrap{width:calc(100% - 32px)}.bar{flex-wrap:wrap;padding:14px 0;min-height:0}.bar>.button{display:none}.nav{width:100%;flex-wrap:wrap;gap:8px 18px;font-size:.9rem}.hero{grid-template-columns:1fr;margin-top:18px}.hero-media{min-height:275px}.hero-copy{padding:26px}.catalog{padding:40px 0}.section-head,.foot .wrap,.cta{display:block}.section-head p,.foot p+p,.cta .button{margin-top:12px}.article-layout{grid-template-columns:1fr}.mobile-cta{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:5;background:var(--paper);border-top:1px solid var(--line);padding:8px 16px max(8px,env(safe-area-inset-bottom));justify-content:center}.mobile-cta .button{width:100%}}
@media(max-width:460px){.cards{grid-template-columns:1fr}.cover{aspect-ratio:2}}
.hero-copy{container-type:inline-size}
.hero h1{font-size:clamp(1.8rem,5.1vw,4.9rem)}
@supports (font-size:1cqi){.hero h1{font-size:clamp(1.65rem,13.2cqi,4.9rem)}}
.hero-copy .kicker{font-size:.76rem;color:#52684e}
.external-arrow{position:relative;width:10px;height:10px;flex:0 0 10px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor}
.external-arrow::before{content:"";position:absolute;top:7px;left:0;width:11px;border-top:1.5px solid currentColor;transform:rotate(-45deg);transform-origin:left center}

/* Extended home guide and review carousel */
.guide-jump{display:flex;flex-wrap:wrap;gap:12px 28px;padding:19px 0;border-bottom:1px solid var(--line);font-size:.9rem}
.guide-jump a,.guide-links a,.review-guide a,.faq-list a{text-underline-offset:4px}
.feature-grid,.faq-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);margin-top:66px;overflow:hidden;background:#eeeadf}
.feature-photo{margin:0;min-height:420px;position:relative}
.feature-photo img{position:absolute;width:100%;height:100%;object-fit:cover}
.feature-copy{padding:clamp(26px,5vw,74px);align-self:center}
.feature-copy p:not(.kicker),.faq-intro p{color:var(--muted)}
.guide-links{padding-left:1.2rem;margin-bottom:0}
.guide-links li{margin:.38em 0}
.price-guide{margin-top:56px;padding:clamp(26px,5vw,72px);background:#214333;color:#fffdf7;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(24px,6vw,80px)}
.price-guide .kicker{color:#d4dfc4}
.price-guide p{color:#e3eadc}
.price-guide .button{background:#f0e9d9;color:var(--ink)}
.price-guide .button:hover{background:white}
.order-steps{list-style:none;counter-reset:steps;margin:0;padding:0;align-self:center}
.order-steps li{counter-increment:steps;border-top:1px solid #668572;padding:13px 0 13px 49px;position:relative}
.order-steps li::before{content:counter(steps);position:absolute;left:0;top:14px;display:grid;place-items:center;width:32px;height:32px;border:1px solid #a9b99d;border-radius:50%;font-family:var(--serif)}
.order-steps p{margin:4px 0 0}
.faq-grid{grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);padding:clamp(24px,4vw,52px);gap:clamp(20px,5vw,68px)}
.faq-intro img{width:100%;aspect-ratio:1.75;object-fit:cover;margin-bottom:17px}
.faq-intro h2{font-size:clamp(2rem,3.5vw,3.25rem)}
.faq-intro p{margin:0}
.faq-list details{border-bottom:1px solid #c7c5b6;padding:12px 0}
.faq-list details:first-child{border-top:1px solid #c7c5b6}
.faq-list summary{cursor:pointer;font-weight:650;padding:4px 0}
.faq-list details p{color:var(--muted);margin:10px 0 5px}
.reviews-panel{margin-top:58px;padding:clamp(22px,4vw,53px);background:#e8ecdf;border:1px solid #d6dfcc}
.reviews-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:18px}
.reviews-heading h2{font-size:clamp(2rem,4vw,3.5rem);margin-bottom:8px}
.reviews-heading p,.review-guide{color:var(--muted);margin-bottom:0}
.review-score{white-space:nowrap;font-family:var(--serif);font-size:2rem}
.review-score span,.rating-stars{color:#785817}
.review-score small{font-family:system-ui,sans-serif;color:var(--muted);margin-left:5px}
.review-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 32px)/3);gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0;padding:0 0 10px;list-style:none;scrollbar-color:#6b8069 #dce4d5}
.review-card{scroll-snap-align:start;padding:clamp(17px,2.4vw,31px);background:#fffdf7;border:1px solid var(--line);display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}
.rating-stars{letter-spacing:.08em;font:1.05rem/1.4 'DejaVu Sans',system-ui,sans-serif}
.review-card blockquote{margin:12px 0 18px;font-family:var(--serif);font-size:1.16rem}
.review-card p{margin:auto 0 0;font-weight:680}
.review-card small{color:var(--muted);margin-top:4px}
.review-controls{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:9px}
.review-controls[hidden]{display:none}
.review-controls button{background:var(--green);color:white;border:0;border-radius:50%;font:1.25rem/1 system-ui;width:44px;height:44px;cursor:pointer}
.review-controls button:disabled{opacity:.45;cursor:default}
.review-guide a{display:inline-block;margin-top:13px}
@media(max-width:960px){.review-track{grid-auto-columns:calc((100% - 16px)/2)}}
@media(max-width:700px){
 .feature-grid,.price-guide,.faq-grid{grid-template-columns:minmax(0,1fr);margin-top:34px}
 .feature-photo{min-height:300px}
 .guide-jump{gap:10px 18px}
 .reviews-panel{margin-top:36px}
 .reviews-heading{display:block}
 .review-track{grid-auto-columns:100%}
}

/* Packaging image and expanded buying guide */
.hero{background:#f4eee4}
.hero-product{display:grid;place-items:center;align-content:center;gap:18px;padding:34px;background:radial-gradient(ellipse at 48% 43%,#fffcf5 0%,#f5eee3 60%,#eee4d6 100%)}
.hero-product::before{content:"";position:absolute;inset:26px;border:1px solid #ded2c1;border-radius:48% 48% 6px 6px;pointer-events:none}
.hero-media.hero-product img{position:relative;inset:auto;width:min(100%,410px);height:auto;object-fit:contain;filter:drop-shadow(0 14px 16px #3c3d2930)}
.hero-media.hero-product figcaption{position:relative;inset:auto;background:#fffcf5;color:var(--muted);text-align:center;border-radius:3px}
.price-guide{background:#495b50}
.reviews-panel,.article-head{background:#f4eee4}
.feature-grid,.faq-grid{background:#f5f0e8}
.home-reference{margin-top:64px}
.home-reference .section-head{align-items:start}
.reference-grid,.reference-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.reference-card{padding:clamp(21px,3.4vw,48px);background:#fffdf9;border:1px solid var(--line);border-radius:4px}
.reference-card h3{font-size:clamp(1.5rem,2.4vw,2.35rem);margin-bottom:.6em}
.reference-card p{color:var(--muted)}
.reference-card a{text-underline-offset:4px;font-weight:600}
.reference-wide{grid-column:1/-1;background:#f5f0e8}
.reference-wide .reference-columns{grid-template-columns:minmax(0,1.45fr) minmax(0,.85fr);gap:34px}
.reference-links{display:flex;flex-wrap:wrap;gap:8px 18px}
.order-check{background:#faf8f2;border-left:3px solid #879385;padding:18px 22px;align-self:start}
.order-check h4{margin:0;font:1.28rem var(--serif)}
.order-check ul{margin:9px 0 0;padding-left:1.25em}
.order-check li{margin:.38em 0}
@media(max-width:700px){
 .hero-product{padding:25px;min-height:250px}
 .hero-product::before{inset:14px}
 .hero-media.hero-product img{max-width:285px;width:100%}
 .home-reference{margin-top:42px}
 .reference-grid,.reference-wide .reference-columns{grid-template-columns:minmax(0,1fr)}
}
.comparison-wrap{overflow-x:auto;margin-bottom:20px;border:1px solid var(--line);background:#fffdf9}
.comparison-table{border-collapse:collapse;width:100%;min-width:580px;text-align:left}
.comparison-table caption{text-align:left;padding:16px 22px;font:1.28rem var(--serif);background:#efefe7}
.comparison-table th,.comparison-table td{padding:13px 21px;border-top:1px solid var(--line);vertical-align:top}
.comparison-table td{color:var(--muted)}
.comparison-table thead{background:#f5f2eb}

.guide-scene{margin:34px auto 0;overflow:hidden;border:1px solid var(--line);border-radius:4px;background:#f4eee4}
.guide-scene img{display:block;width:100%;height:auto;aspect-ratio:3.55;object-fit:cover}
@media(max-width:700px){
 .guide-scene{margin-top:24px}
 .guide-scene img{aspect-ratio:2.25}
}

/* The navy from the offer page frames the light reading surfaces. */
:root{--navy:#012744;--navy-text:#f9f5ee;--navy-muted:#dbe7ef}
body{background:var(--navy)}
.header{background:var(--navy);color:var(--navy-text);border-color:#557083}
.header .button{background:#f4eee4;color:var(--ink)}
.header .button:hover{background:white}
.guide-jump,.catalog .section-head,.listing{color:var(--navy-text)}
.catalog .section-head p,.foot{color:var(--navy-muted)}
.foot,.guide-jump,.catalog .section-head{border-color:#557083}
.article-layout>.prose{padding:clamp(20px,4vw,48px);background:#fbf8f2;border-radius:4px}
.hero-product{background:radial-gradient(ellipse at 50% 46%,#d5e0e4,#a7bfcf 65%,#8fa8bc)}
.hero-product::before{border-color:#7895a8}
.review-card p{color:var(--muted)}
