/*
Theme Name: Никольский храм — Правдинский
Theme URI: https://hram-nikols.ru/
Author: Nikols Church
Description: Лёгкая адаптивная тема для Никольского храма с управлением разделами и расписанием.
Version: 1.3.0
Requires PHP: 7.4
Text Domain: nikols
*/
:root{--ink:#2d302d;--accent:#b48b49;--cream:#f7f5ef;--muted:#72746d}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:Arial,sans-serif;line-height:1.7;background:#fff}a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}img{max-width:100%;height:auto}.wrap{max-width:1160px;padding:0 22px;margin:auto}.top{background:#f8f7f2;font-size:13px;padding:9px 0;color:#555}.top .wrap{display:flex;justify-content:space-between;gap:15px}.site-header{background:#fff;border-bottom:1px solid #eee;position:relative;z-index:10}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:90px}.brand{display:flex;align-items:center;gap:14px;font-size:21px;font-family:Georgia,serif;font-weight:bold;line-height:1.2}.brand img{width:64px;max-height:70px;object-fit:contain}.brand small{display:block;font:12px Arial,sans-serif;letter-spacing:2px;text-transform:uppercase;color:var(--muted);margin-top:7px}.nav ul{display:flex;list-style:none;gap:22px;margin:0;padding:0;flex-wrap:wrap}.nav a{font-size:13px;text-transform:uppercase;letter-spacing:.8px;font-weight:600}.menu-toggle{display:none;border:1px solid #ddd;background:#fff;padding:9px 12px}.hero{background:#ece9e1 center/cover no-repeat;position:relative;min-height:480px;display:flex;align-items:center}.hero:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(18,22,19,.68),rgba(18,22,19,.14))}.hero .wrap{position:relative;width:100%;color:white}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:3px;color:var(--accent);font-weight:bold}.hero .eyebrow{color:#ead1a5}.hero h1{font:normal clamp(34px,5vw,60px)/1.13 Georgia,serif;max-width:680px;margin:15px 0}.hero p{font-size:18px;max-width:620px}.btn{display:inline-block;background:var(--accent);color:#fff;padding:12px 23px;margin-top:15px;font-size:13px;font-weight:bold;letter-spacing:.5px}.btn:hover{background:#987039;color:#fff}.section{padding:65px 0}.section.alt{background:var(--cream)}h2{font:normal clamp(28px,3.3vw,40px)/1.2 Georgia,serif;margin:8px 0 25px}h3{font:normal 24px/1.3 Georgia,serif}.two{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}.two img{width:100%;max-height:430px;object-fit:cover}.muted{color:var(--muted)}.schedule{width:100%;border-collapse:collapse;background:#fff}.schedule th,.schedule td{border-bottom:1px solid #e8e5df;padding:15px;text-align:left}.schedule th{background:#eee8dd;font-size:13px;text-transform:uppercase}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.card{border:1px solid #e9e7e2;background:white;overflow:hidden}.card img{width:100%;height:210px;object-fit:cover}.card-body{padding:20px}.card h3{font-size:21px;margin:0 0 10px}.card time{font-size:12px;color:#777}.page-head{background:var(--cream);padding:55px 0}.page-head h1{font:normal 44px Georgia,serif;margin:0}.content{max-width:850px;margin:45px auto 70px;padding:0 22px}.content img{height:auto}.footer{background:#282c29;color:#e9e9e6;padding:50px 0 20px}.footer a{color:#e9e9e6}.footer .cols{display:grid;grid-template-columns:2fr 1fr 2fr;gap:45px}.footer h3{color:#d5b276;font-size:21px}.footer small{display:block;border-top:1px solid #4a4c49;margin-top:40px;padding-top:20px;color:#aaa}.pagination{margin-top:35px}.pagination a,.pagination span{padding:8px 13px;border:1px solid #ddd;margin-right:5px}.entry-meta{color:#888;font-size:13px}.wp-block-image{margin:20px 0}@media(max-width:800px){.top .wrap{display:block}.header-inner{min-height:75px}.brand{font-size:17px}.brand img{width:46px}.menu-toggle{display:block}.nav{display:none;position:absolute;top:100%;left:0;right:0;background:white;padding:18px 22px;box-shadow:0 12px 20px #0002}.nav.open{display:block}.nav ul{display:block}.nav li{padding:10px 0}.hero{min-height:390px}.two,.cards,.footer .cols{grid-template-columns:1fr;gap:22px}.section{padding:43px 0}.page-head{padding:35px 0}.page-head h1{font-size:34px}.schedule{font-size:13px}.schedule th,.schedule td{padding:10px 6px}}
.nikols-schedule-image{display:block;max-width:760px;margin:24px auto}.nikols-schedule-image img{display:block;width:100%;height:auto;object-fit:contain;border:1px solid #e9e7e2;background:#fff}

/* 1.2 — original-homepage restoration */
body{font-family:Arial,Helvetica,sans-serif;color:#282828}
h1,h2,h3{font-family:Georgia,'Times New Roman',serif}
.nikols-hero{min-height:530px;background-size:cover;background-position:center;display:flex;align-items:center;color:#fff}
.nikols-hero .wrap{width:100%}
.nikols-hero h1{font:normal clamp(38px,5vw,65px)/1.1 Georgia,serif;text-shadow:0 2px 15px #0006}
.nikols-hero h1 span{font-size:.65em}
.nikols-hero p{font-size:18px}
.original-intro{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:52px}
.original-intro .intro-photo img{width:100%;max-height:500px;object-fit:contain}
.schedule-gallery{display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:start}
.schedule-gallery a{display:block;margin:0;max-width:none}
.schedule-gallery img{width:100%;height:auto;object-fit:contain;background:#fff}
.story-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:48px;align-items:center}
.story-grid img{width:100%;max-height:410px;object-fit:contain}
.story-copy{font-size:17px;line-height:1.8}
.story-copy p{margin:0 0 1em}
@media(max-width:800px){.nikols-hero{min-height:390px}.original-intro,.story-grid,.schedule-gallery{grid-template-columns:1fr;gap:20px}.original-intro .intro-photo img{max-height:280px}.story-grid img{max-height:320px}}

/* 1.3 — управляемые изображения и раздел Патриарха */
.brand .nikols-brand-logo{width:auto;max-width:210px;max-height:76px;object-fit:contain}
.patriarch-feature{display:grid;grid-template-columns:minmax(0,0.85fr) minmax(0,1.15fr);gap:46px;align-items:center}
.patriarch-feature__photo img{display:block;width:100%;height:390px;object-fit:contain;object-position:center;background:#eee8dc}
.patriarch-feature__copy p{font-size:18px;color:#666}
.patriarch-feature__copy .eyebrow{color:#a57a3b}
@media(max-width:800px){.patriarch-feature{grid-template-columns:1fr;gap:24px}.patriarch-feature__photo img{height:auto;max-height:400px}.brand .nikols-brand-logo{max-width:145px;max-height:60px}}
