/*
Theme Name: Здоровое меню
Version: 1.1.0
Description: Лёгкая редакционная тема для сайта о здоровом питании.
*/

:root{--hm-green:#1f5c42;--hm-lime:#b8d96b;--hm-cream:#f7f3e8;--hm-ink:#193128;--hm-muted:#617069;--hm-white:#fff;--hm-line:#dfe7df}
*{box-sizing:border-box}
body{background:var(--hm-cream);color:var(--hm-ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
a{color:var(--hm-green);text-decoration-thickness:1px;text-underline-offset:3px}
.hm-header{background:var(--hm-white);border-bottom:1px solid var(--hm-line);position:sticky;top:0;z-index:20}
.hm-brand img{width:48px;height:48px;border-radius:14px}
.hm-brand a{text-decoration:none}
.hm-nav a{font-weight:650;text-decoration:none;padding:.5rem .15rem}
.hm-nav a:hover{color:#7a962f}
.hm-hero{background:linear-gradient(135deg,#174b37,#2d7152);color:#fff;border-radius:28px;padding:clamp(2rem,5vw,4.5rem);overflow:hidden;position:relative}
.hm-hero:after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;background:rgba(184,217,107,.2);right:-70px;top:-100px}
.hm-hero p{max-width:680px;color:#e8f2ec}
.hm-hero h1{font-size:clamp(2rem,4vw,3.25rem)!important;line-height:1.12}
.hm-hero .has-large-font-size{font-size:clamp(1.05rem,1.7vw,1.3rem)!important;line-height:1.65}
.hm-grid .wp-block-post{background:#fff;border:1px solid var(--hm-line);border-radius:20px;overflow:hidden;box-shadow:0 8px 24px rgba(25,49,40,.06);transition:transform .2s ease,box-shadow .2s ease}
.hm-grid .wp-block-post:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(25,49,40,.11)}
.hm-grid .wp-block-post-featured-image{margin:0;aspect-ratio:16/10;background:#e6eee8}
.hm-grid .wp-block-post-featured-image img{height:100%;object-fit:cover}
.hm-card-body{padding:1.25rem}
.hm-grid .wp-block-post-title a{text-decoration:none}
.wp-block-read-more{display:inline-flex;background:var(--hm-green);color:#fff!important;border-radius:999px;padding:.6rem 1rem;text-decoration:none;font-weight:700}
.hm-breadcrumbs{font-size:.9rem;color:var(--hm-muted);margin:1rem 0 1.5rem}
.hm-breadcrumbs a{text-decoration:none}
.hm-article{background:#fff;border:1px solid var(--hm-line);border-radius:24px;padding:clamp(1.25rem,4vw,3.5rem)}
.hm-article .wp-block-post-featured-image img{border-radius:18px}
.hm-footer{background:#123c2c;color:#dfeae3;margin-top:4rem}
.hm-footer a{color:#fff}
@media(max-width:780px){
  .hm-header{position:static}
  .hm-nav{font-size:.92rem}
  .hm-nav .wp-block-navigation__responsive-container.is-menu-open{width:100vw!important;max-width:100vw!important;inset:0!important;padding:0!important;overflow-x:hidden}
  .hm-nav .wp-block-navigation__responsive-dialog{width:100%;padding:4.5rem 1.5rem 2rem!important}
  .hm-nav .wp-block-navigation__responsive-container-content{width:100%;padding:0!important;align-items:flex-start!important}
  .hm-nav .wp-block-navigation__container{width:100%;align-items:flex-start!important;gap:.35rem!important}
  .hm-nav .wp-block-navigation-item{width:100%;align-items:flex-start!important}
  .hm-nav .wp-block-navigation-item__content{display:block;width:100%;max-width:100%;padding:.7rem 0!important;font-size:1.05rem;line-height:1.35;text-align:left;white-space:normal;overflow-wrap:anywhere}
  .hm-nav .wp-block-navigation__responsive-container-close{top:1.25rem!important;right:1.25rem!important}
  .hm-hero{border-radius:20px;padding:1.5rem}
  .hm-hero h1{font-size:clamp(1.75rem,8vw,2.25rem)!important}
  .hm-hero .has-large-font-size{font-size:1rem!important;line-height:1.55}
  .hm-grid .wp-block-post-template{grid-template-columns:1fr!important}
  .hm-article{border-radius:18px}
}

.hm-layout{gap:2rem;align-items:flex-start}
.hm-sidebar{font-size:1rem}.hm-sidebar section{background:#fff;border:1px solid var(--hm-line);padding:1.4rem;border-radius:18px;margin-bottom:1.5rem}
.hm-sidebar h2{font-size:1.15rem;margin:0 0 1rem}.hm-sidebar ul{padding:0;list-style:none;margin:0}.hm-sidebar li{padding:.5rem 0;border-bottom:1px solid var(--hm-line)}.hm-sidebar li:last-child{border:0}
.hm-sidebar a{text-decoration:none}.hm-categories{color:var(--hm-muted)}.hm-sidebar input[type=search]{width:100%;padding:.7rem;border:1px solid #9aac9f;border-radius:8px;font:inherit}.hm-sidebar input[type=submit],.hm-sidebar button{background:var(--hm-green);color:white;border:0;border-radius:8px;padding:.7rem 1rem;font:inherit;margin-top:.5rem;cursor:pointer}
.hm-recent a{display:flex;gap:.75rem;align-items:flex-start;font-size:.9rem;line-height:1.5}.hm-recent img{width:64px;height:64px;object-fit:cover;border-radius:8px;flex-shrink:0}
.hm-top{display:block;width:max-content;margin:1rem auto;padding:.6rem 1rem;font-size:.9rem}.hm-sitemap li{margin-bottom:.6rem}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #739f23;outline-offset:4px}
.hm-grid .wp-block-post-excerpt__more-link{font-weight:700}.hm-hero{padding:clamp(1.5rem,4vw,3rem)}
@media(max-width:900px){.hm-layout{flex-wrap:wrap!important}.hm-layout>.wp-block-column{flex-basis:100%!important}.hm-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.hm-sidebar section:first-child{grid-column:1/-1}}
@media(max-width:600px){.hm-sidebar{display:block}.hm-header>.wp-block-group{padding-left:16px;padding-right:16px}.hm-footer{padding-left:20px;padding-right:20px}.hm-grid .wp-block-post-title{overflow-wrap:anywhere}}
