/*
Theme Name: Грааль — компактная тестовая тема
Description: Тестовая площадка Грааль. Индексация отключена; готовность приёма заявок проверяется отдельно.
Version: 0.4.27
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: graal-stage
*/
body.admin-bar header { top: 32px; }
@media(max-width:782px) { body.admin-bar header { top:46px; } }

/* Balanced homepage hero: 2026-10-19 */
#hero{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
#hero>.hero-copy,#hero>.hero-visual{min-width:0}
#hero>.hero-visual{background:#fff;padding:56px 24px 44px;min-height:360px}
#hero>.hero-visual:before{display:none}
#hero>.hero-visual>img{position:absolute;inset:56px 24px 44px;width:calc(100% - 48px);height:calc(100% - 100px);object-fit:contain;filter:none;transform:none}
#hero .hero-badge{max-width:calc(100% - 36px);text-align:center}
#hero .visual-note{left:20px;right:20px;bottom:16px;text-align:center}
#hero .hero-actions .ghost:after{display:none}
@media(max-width:900px){#hero{grid-template-columns:1fr}#hero>.hero-visual{min-height:0;height:clamp(280px,65vw,420px)}#hero>.hero-copy{padding:26px 24px}#hero .hero-actions{margin-top:18px}}
@media(max-width:480px){#hero>.hero-copy{padding:24px 20px}#hero>.hero-visual{height:300px}#hero>.hero-visual>img{inset:48px 16px 40px;width:calc(100% - 32px);height:calc(100% - 88px)}#hero .hero-actions{width:100%;display:grid;grid-template-columns:1fr}#hero .hero-actions .button{width:100%}#hero .hero-badge{font-size:9px}#hero .visual-note{font-size:10px}}

/* Keep navigation within tablet and narrow desktop viewports. */
@media(min-width:641px) and (max-width:1100px){.primary-nav .nav-links{display:flex;flex:1 1 auto;min-width:0;flex-wrap:wrap;column-gap:12px;row-gap:0}.primary-nav .nav-links>a{padding-top:8px;padding-bottom:8px}.primary-nav>.messengers{flex-shrink:0}}

/* Reservoir model specifications */

.reservoir-specs{margin:24px 0}.reservoir-specs>div{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:14px 0;border-bottom:1px solid var(--line,#dce4dc)}.reservoir-specs dt{color:var(--muted,#657369)}.reservoir-specs dd{margin:0;font-weight:600;text-align:right}@media(max-width:480px){.reservoir-specs>div{grid-template-columns:1fr;gap:6px}.reservoir-specs dd{text-align:left}}

.reservoir-render{margin:0 0 20px;background:#f5f6f1;border-radius:16px;overflow:hidden}.reservoir-render img{display:block;width:100%;height:240px;object-fit:contain;padding:12px;box-sizing:border-box}.reservoir-render figcaption{padding:8px 16px 14px;color:#657369;font-size:12px;line-height:1.5}.reservoir-render-large{max-width:760px;margin:24px auto}.reservoir-render-large img{height:360px}@media(max-width:600px){.reservoir-render img{height:210px}.reservoir-render-large img{height:280px}}

/* Production proof cards: keep images inside narrow screens. */
@media(max-width:767px){.proof-card.proof-real{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box}.proof-card.proof-real>a{display:block;min-width:0;max-width:100%}.proof-card.proof-real img{max-width:100%;height:auto}}

/* Prevent intrinsic photo widths from expanding workshop grid tracks. */
#real-workshop .proof-grid{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
#real-workshop figure{min-width:0;max-width:100%;margin-inline:0}
#real-workshop figure img{display:block;width:100%;max-width:100%;object-fit:contain}
@media(max-width:767px){#real-workshop .proof-grid{grid-template-columns:minmax(0,1fr)}}

#real-workshop figure>a{display:block;max-width:100%;min-width:0}
