/* Pro-Recept Home 0.1.0. Scoped to homepage shortcode. */
.prh-home { --prh-green:#2c674d; --prh-ink:#26372d; --prh-soft:#f4f7f1; --prh-line:#e6ebe4; color:var(--prh-ink); font-family:inherit; }
.prh-home * { box-sizing:border-box; }
.prh-hero { background:linear-gradient(120deg,#f3f8f0,#fff9ed); border-radius:18px; padding:clamp(26px,6vw,60px); margin:10px 0 44px; }
.prh-eyebrow { color:var(--prh-green); font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.085em; margin:0 0 10px; }
.prh-hero h1 { margin:0 0 15px; font-size:clamp(28px,4vw,46px); letter-spacing:-.025em; line-height:1.13; color:var(--prh-ink); }
.prh-intro { max-width:700px; font-size:clamp(15px,1.55vw,18px); line-height:1.55; margin:0 0 24px; }
.prh-search { display:flex; gap:10px; align-items:stretch; max-width:780px; }
.prh-search input[type=search] { flex:1; min-width:0; min-height:54px; margin:0; background:white; border:1px solid #c8d5c8; border-radius:9px; padding:12px 16px; color:var(--prh-ink); font-size:16px; box-shadow:none; }
.prh-search input[type=search]:focus-visible { outline:2px solid var(--prh-green); outline-offset:2px; }
.prh-search button { flex:none; min-height:54px; border:0; border-radius:9px; padding:12px 22px; background:var(--prh-green); color:white; font-weight:700; cursor:pointer; }
.prh-search button:hover { background:#20563d; }
.prh-hint { margin:12px 0 0; font-size:13px; color:#65756a; }
.prh-section { margin:0 0 46px; }
.prh-section-heading { margin:0 0 22px; }
.prh-section-heading h2 { margin:0 0 5px; font-size:clamp(23px,2.5vw,30px); line-height:1.25; color:var(--prh-ink); }
.prh-section-heading p { margin:0; color:#6a786e; font-size:14px; }
.prh-category-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); column-gap:19px; row-gap:24px; }
.prh-category { text-decoration:none!important; color:var(--prh-ink)!important; display:block; min-width:0; }
.prh-category-media { display:flex; width:100%; aspect-ratio:5/3; background:var(--prh-soft); border-radius:12px; overflow:hidden; align-items:center; justify-content:center; transition:transform .18s ease; }
.prh-category-media img { width:100%; height:100%; object-fit:cover; display:block; }
.prh-category:hover .prh-category-media { transform:translateY(-2px); }
.prh-category-emoji { font-size:clamp(35px,4vw,55px); line-height:1; }
.prh-category-name { display:block; font-weight:700; font-size:15px; line-height:1.35; margin:9px 2px 0; }
.prh-recipes-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.prh-recipe { color:var(--prh-ink)!important; text-decoration:none!important; min-width:0; }
.prh-recipe-media { display:flex; aspect-ratio:4/3; background:var(--prh-soft); align-items:center; justify-content:center; border-radius:12px; overflow:hidden; font-size:42px; }
.prh-recipe-media img { display:block; width:100%; height:100%; object-fit:cover; }
.prh-recipe-title { display:block; font-size:17px; font-weight:700; margin:11px 0 4px; line-height:1.4; }
.prh-recipe-meta { display:block; font-size:13px; color:#607266; }
.prh-empty { padding:22px; border:1px dashed #b8cabc; border-radius:12px; color:#5e7164; font-size:15px; }
@media(max-width:900px) { .prh-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media(max-width:640px) {
 .prh-hero{margin:0 0 32px;padding:24px 18px;border-radius:13px}
 .prh-search{flex-direction:column;gap:9px}
 .prh-search input[type=search],.prh-search button{width:100%}
 .prh-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
 .prh-recipes-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
 .prh-category-name{font-size:14px}
 .prh-recipe-title{font-size:15px}
 .prh-section{margin-bottom:36px}
}

/* PRH_COMPACT_V1 */

/* Компактный поиск */
.prh-home .prh-hero {
    padding: 22px 28px;
    margin: 0 0 26px;
    border-radius: 12px;
}

.prh-home .prh-eyebrow {
    font-size: 11px;
    margin-bottom: 6px;
}

.prh-home .prh-hero h1 {
    font-size: 30px;
    margin-bottom: 8px;
}

.prh-home .prh-intro {
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.45;
}

.prh-home .prh-search {
    max-width: 680px;
}

.prh-home .prh-search input[type=search],
.prh-home .prh-search button {
    min-height: 42px;
    height: 42px;
    padding: 8px 12px;
    font-size: 14px;
}

.prh-home .prh-hint {
    font-size: 11px;
    margin-top: 7px;
}

/* Категории */
.prh-home .prh-section {
    margin-bottom: 28px;
}

.prh-home .prh-section-heading {
    margin-bottom: 14px;
}

.prh-home .prh-section-heading h2 {
    font-size: 22px;
    margin-bottom: 3px;
}

.prh-home .prh-section-heading p {
    font-size: 12px;
}

.prh-home .prh-category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.prh-home .prh-category-media {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
}

.prh-home .prh-category-emoji {
    font-size: 32px;
}

.prh-home .prh-category-name {
    font-size: 13px;
    margin: 6px 2px 0;
}

/* Карточки рецептов */
.prh-home .prh-recipes-grid {
    gap: 14px;
}

.prh-home .prh-recipe-title {
    font-size: 15px;
    margin: 7px 0 3px;
}

/* Планшеты */
@media (min-width: 641px) and (max-width: 900px) {
    .prh-home .prh-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Смартфоны */
@media (max-width: 640px) {
    .prh-home .prh-hero {
        padding: 17px;
        margin-bottom: 22px;
    }

    .prh-home .prh-hero h1 {
        font-size: 24px;
    }

    .prh-home .prh-search {
        flex-direction: row;
        gap: 6px;
    }

    .prh-home .prh-search input[type=search] {
        width: auto;
        flex: 1;
        min-width: 0;
        font-size: 13px;
    }

    .prh-home .prh-search button {
        width: auto;
        padding: 8px 10px;
        font-size: 12px;
    }

    .prh-home .prh-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .prh-home .prh-category-emoji {
        font-size: 28px;
    }
}

@media (max-width: 360px) {
    .prh-home .prh-search {
        flex-direction: column;
    }

    .prh-home .prh-search input[type=search],
    .prh-home .prh-search button {
        width: 100%;
    }
}

/* PRH_SMALL_CATEGORIES_V2 */

/* Плитки по ширине самого длинного названия */
.prh-home .prh-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 170px);
    justify-content: start;
    gap: 10px;
}

.prh-home .prh-category-media {
    height: 65px;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 7px;
}

.prh-home .prh-category-emoji {
    font-size: 26px;
}

.prh-home .prh-category-name {
    font-size: 12px;
    line-height: 1.3;
    margin: 5px 0 0;
}

/* Смартфоны */
@media (max-width: 640px) {
    .prh-home .prh-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .prh-home .prh-category-media {
        height: 60px;
    }
}

/* PRH_VISUAL_CSS_V03 — full-width photo hero and compact photo categories. */
body.prh-landing-page { overflow-x:clip; }
/* Hide the duplicate WordPress page heading “Главная”, not the global site header. */
body.prh-landing-page .entry-header,
body.prh-landing-page .hero-section[data-type="type-1"] { display:none; }
body.prh-landing-page .entry-content { margin-top:0; }

.prh-home { --prh-green:#245a40; --prh-gold:#f2b55b; }
.prh-home .prh-hero {
  width:100vw; max-width:none;
  margin:0 0 26px calc(50% - 50vw);
  min-height:290px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:37px 20px 43px;
  border-radius:0;
  background-image:linear-gradient(90deg,rgba(9,25,15,.37),rgba(13,27,19,.27)),url("assets/prh-visual-v03/hero.webp");
  background-color:#273a29;
  background-size:cover; background-position:center center;
  color:#fff;
}
.prh-home .prh-hero .prh-eyebrow {
  color:#f7e4b5; font-size:11px; letter-spacing:.13em;
  text-shadow:0 1px 2px rgba(0,0,0,.5); margin:0 0 7px;
}
.prh-home .prh-hero h1 {
  color:#fff; font-size:clamp(29px,3.4vw,43px);
  line-height:1.17; margin:0 0 10px;
  text-shadow:0 2px 8px rgba(0,0,0,.5);
}
.prh-home .prh-hero .prh-intro {
  max-width:640px; margin:0 auto 18px;
  color:#fff; font-size:14px; line-height:1.5;
  text-shadow:0 1px 5px rgba(0,0,0,.9);
}
.prh-home .prh-hero .prh-search {
  width:100%; max-width:660px; margin:0 auto;
  gap:7px; background:rgba(255,255,255,.9);
  padding:6px; border-radius:12px;
  box-shadow:0 6px 24px rgba(0,0,0,.2);
}
.prh-home .prh-hero .prh-search input[type=search] {
  border:0; min-height:39px; height:39px;
  background:transparent; border-radius:8px;
  padding:8px 12px; font-size:14px;
}
.prh-home .prh-hero .prh-search button {
  background:var(--prh-green); color:white;
  min-height:39px; height:39px;
  border-radius:8px; padding:7px 18px; font-size:13px;
}
.prh-home .prh-hero .prh-hint {
  color:#f4f4e9; font-size:11px;
  text-shadow:0 1px 5px rgba(0,0,0,.85);
  margin-top:10px;
}
.prh-home .prh-section { margin-bottom:30px; }
.prh-home .prh-section-heading { margin-bottom:13px; }
.prh-home .prh-section-heading h2 { font-size:21px; margin:0 0 4px; }
.prh-home .prh-section-heading p { font-size:12px; }
.prh-home .prh-category-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(145px,170px));
  gap:12px;
  justify-content:start;
}
.prh-home .prh-category {
  display:block; position:relative; width:100%;
  min-width:0; border-radius:10px;
  overflow:hidden; background:#fff;
  box-shadow:0 2px 12px rgba(31,54,38,.11);
  transition:transform .16s ease,box-shadow .16s ease;
}
.prh-home .prh-category:hover { transform:translateY(-2px); box-shadow:0 6px 18px rgba(31,54,38,.21); }
.prh-home .prh-category:focus-visible { outline:3px solid var(--prh-gold); outline-offset:3px; }
.prh-home .prh-category-media {
  height:94px; min-height:0; aspect-ratio:auto;
  display:block; border-radius:10px; background:#e5ebe2;
  width:100%; overflow:hidden;
}
.prh-home .prh-category-media img { width:100%; height:100%; object-fit:cover; display:block; }
.prh-home .prh-category-name {
  display:block; position:absolute; left:0; right:0; bottom:0;
  width:100%; box-sizing:border-box; padding:16px 8px 7px;
  margin:0; background:linear-gradient(transparent,rgba(4,25,12,.91));
  color:white!important; font-size:12px; font-weight:700; line-height:1.17;
  text-align:center; text-shadow:0 1px 2px rgba(0,0,0,.6);
}
.prh-home .prh-recipes-grid { gap:14px; }
.prh-home .prh-recipe {
  padding:6px; border-radius:11px; background:#fff;
  box-shadow:0 2px 12px rgba(31,54,38,.08);
  transition:transform .15s ease;
}
.prh-home .prh-recipe:hover { transform:translateY(-2px); }
.prh-home .prh-recipe-media { aspect-ratio:5/3; border-radius:8px; }
.prh-home .prh-recipe-title { font-size:14px; margin:7px 5px 3px; }
.prh-home .prh-recipe-meta { margin:0 5px 5px; }
@media (max-width:700px) {
  .prh-home .prh-hero { min-height:253px; padding:28px 14px; }
  .prh-home .prh-hero h1 { font-size:clamp(25px,6vw,32px); }
  .prh-home .prh-hero .prh-intro { font-size:13px; margin-bottom:14px; }
  .prh-home .prh-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .prh-home .prh-category-media { height:100px; }
  .prh-home .prh-recipes-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:390px) {
  .prh-home .prh-hero .prh-search { flex-direction:column; background:transparent; padding:0; box-shadow:none; }
  .prh-home .prh-hero .prh-search input[type=search] { width:100%; background:white; }
  .prh-home .prh-hero .prh-search button { width:100%; }
  .prh-home .prh-hero { min-height:315px; }
}

/* PRH_GRID_18_V1 */

.prh-home .prh-category-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.prh-home .prh-category {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.prh-home .prh-category-name {
    text-align: center;
    font-size: 14px;
    line-height: 1.3;
}

@media (max-width: 1000px) {
    .prh-home .prh-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .prh-home .prh-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }
}

/* PRH_NO_TOP_GAP_V1 */

/* Убираем пустой промежуток над баннером главной */
body.prh-landing-page #main {
    padding-top: 0 !important;
}

body.prh-landing-page #main > .ct-container {
    padding-top: 0 !important;
}

body.prh-landing-page #main .entry-content {
    margin-top: 0 !important;
}

body.prh-landing-page .prh-home .prh-hero {
    margin-top: 0 !important;
}



/* PRH_RECIPE_CARDS_CSS_V1 — recent recipes, four columns on desktop */
.prh-home .prh-recipes-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.prh-home .prh-recipe {
    display: block;
    min-width: 0;
    padding: 6px;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(31,54,38,.11);
    transition: transform .16s ease, box-shadow .16s ease;
}
.prh-home .prh-recipe:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(31,54,38,.16);
}
.prh-home .prh-recipe:focus-visible {
    outline: 3px solid #f2b55b;
    outline-offset: 3px;
}
.prh-home .prh-recipe-media {
    aspect-ratio: 3 / 2;
    border-radius: 8px;
    overflow: hidden;
}
.prh-home .prh-recipe-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.prh-home .prh-recipe-title {
    display: block;
    margin: 9px 6px 5px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}
.prh-home .prh-recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 12px;
    margin: 0 6px 7px;
    font-size: 12px;
    line-height: 1.4;
    color: #607266;
}
.prh-home .prh-recipe-fact { white-space: nowrap; }
@media (min-width: 641px) and (max-width: 980px) {
    .prh-home .prh-recipes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .prh-home .prh-recipes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .prh-home .prh-recipe-title { font-size: 13px; margin: 7px 5px 4px; }
    .prh-home .prh-recipe-meta { font-size: 11px; margin: 0 5px 6px; gap: 2px 8px; }
}
