/*
Theme Name: Школа на Дому — ЕГЭ и ОГЭ
Theme URI: https://your-homeschool.ru/
Author: OpenAI
Description: Полноценная адаптивная тема образовательного центра «Школа на Дому» с приоритетом ЕГЭ и ОГЭ, предметными страницами и локальным SEO для Махачкалы.
Version: 5.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: your-home-education
*/
:root{--green:#315b42;--dark:#183b2a;--mint:#e7eee2;--cream:#f7f6ef;--ink:#1d2b22;--muted:#667268;--line:#d9e1d6;--radius:22px;--shadow:0 18px 48px rgba(36,67,49,.09)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--cream);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.65}a{color:inherit;text-decoration:none}.container{width:min(1160px,calc(100% - 40px));margin:auto}.site-header{position:sticky;top:0;z-index:20;background:rgba(248,247,241,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:78px}.brand{display:flex;align-items:center;gap:12px;font-weight:800;letter-spacing:-.03em}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--green);color:white;font-size:19px}.brand small{display:block;color:var(--muted);font-size:11px;letter-spacing:.08em;text-transform:uppercase}.nav{display:flex;gap:24px;align-items:center;font-size:14px;color:#46564b}.nav a:hover{color:var(--green)}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 22px;border:1px solid var(--green);border-radius:999px;background:var(--green);color:#fff;font-weight:700;transition:.2s;cursor:pointer}.button:hover{background:var(--dark);transform:translateY(-2px);color:#fff}.button-outline{background:transparent;color:var(--green)}.button-outline:hover{color:white}.menu-toggle{display:none;border:0;background:transparent;font-size:25px;color:var(--green)}.hero{padding:76px 0 68px;overflow:hidden}.hero-grid{display:grid;grid-template-columns:1.08fr .92fr;align-items:center;gap:54px}.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;background:var(--mint);color:var(--dark);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.eyebrow:before{content:"";width:7px;height:7px;background:#86ad8d;border-radius:50%}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(40px,5.3vw,70px);line-height:1.04;letter-spacing:-.055em;margin:22px 0}.hero h1 em{font-style:normal;color:var(--green)}.lead{max-width:570px;color:var(--muted);font-size:18px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.trust-row{display:flex;gap:22px;flex-wrap:wrap;margin-top:30px;color:#526056;font-size:13px}.trust-row span:before{content:"✓";color:var(--green);font-weight:900;margin-right:7px}.hero-art{min-height:430px;position:relative;border-radius:32px;background:linear-gradient(145deg,#e0ebe1,#f1f3e9);padding:26px;display:flex;align-items:center;justify-content:center}.hero-art:before,.hero-art:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(66,107,88,.18)}.hero-art:before{width:310px;height:310px}.hero-art:after{width:390px;height:390px}.study-card{position:relative;z-index:1;width:min(100%,340px);padding:26px;background:#fff;border-radius:24px;box-shadow:var(--shadow);transform:rotate(-2deg)}.study-top{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.study-icon{width:48px;height:48px;display:grid;place-items:center;background:var(--mint);border-radius:15px;font-size:23px;margin-top:15px}.study-card h3{font-size:23px;line-height:1.2;margin:18px 0 8px}.progress{height:7px;background:#edf1ed;border-radius:20px;overflow:hidden;margin:18px 0 8px}.progress span{display:block;width:78%;height:100%;background:#76a184;border-radius:20px}.study-foot{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.floating-note{position:absolute;z-index:2;bottom:34px;left:4px;background:#fff;padding:14px 18px;border-radius:16px;box-shadow:var(--shadow);font-size:13px}.floating-note strong{display:block;color:var(--dark);font-size:17px}.section{padding:82px 0}.section-white{background:#fff}.section-head{max-width:700px;margin:0 auto 38px;text-align:center}.section-head h2,.about-copy h2,.cta h2{font-size:clamp(30px,4vw,46px);line-height:1.12;letter-spacing:-.04em;margin:14px 0}.section-head p,.muted{color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.service-card{padding:26px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;transition:transform .2s,box-shadow .2s}.service-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.service-icon{width:52px;height:52px;border-radius:17px;display:grid;place-items:center;background:var(--mint);font-size:24px;margin-bottom:20px}.service-card h3{font-size:20px;line-height:1.25;margin-bottom:10px}.service-card p{font-size:14px;color:var(--muted);margin-bottom:0}.about-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:55px;align-items:center}.about-panel{background:var(--mint);padding:34px;border-radius:30px;min-height:330px;display:flex;flex-direction:column;justify-content:space-between}.about-panel .big{font-size:clamp(40px,5vw,64px);font-weight:850;letter-spacing:-.06em;color:var(--green)}.about-panel p{max-width:280px;color:#4c6253}.check-list{list-style:none;padding:0;margin:24px 0 0;display:grid;gap:13px}.check-list li{display:flex;gap:12px}.check-list li:before{content:"✓";display:grid;place-items:center;flex:0 0 24px;height:24px;background:var(--mint);color:var(--green);border-radius:50%;font-weight:800}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.step{padding:25px;border-top:2px solid var(--green);background:var(--cream);border-radius:0 0 20px 20px}.step-number{font-size:12px;color:var(--green);font-weight:900;letter-spacing:.1em}.step h3{margin:12px 0 8px}.step p{font-size:14px;color:var(--muted);margin-bottom:0}.quote-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.quote{padding:28px;border:1px solid var(--line);border-radius:var(--radius);background:#fff}.quote-mark{font-size:34px;line-height:1;color:#8aab91}.quote p{color:var(--muted);margin:10px 0 18px}.quote strong{font-size:14px}.faq{max-width:850px;margin:auto}.faq details{padding:20px 0;border-bottom:1px solid var(--line)}.faq summary{font-weight:750;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:20px}.faq summary:after{content:"+";font-size:22px;color:var(--green)}.faq details[open] summary:after{content:"−"}.faq details p{color:var(--muted);margin:12px 0 0}.cta{padding:44px;border-radius:30px;background:var(--dark);color:#fff;display:grid;grid-template-columns:1fr .8fr;gap:32px;align-items:center}.cta p{color:#d6e3d9;max-width:560px}.cta .eyebrow{background:rgba(255,255,255,.12);color:#fff}.form-box{background:#fff;border-radius:22px;padding:24px;color:var(--ink)}.form-box label{display:block;font-size:13px;font-weight:700;margin:0 0 6px}.form-box input,.form-box textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:13px;background:#fbfcfa;font:inherit}.form-box .button{width:100%}.form-note{font-size:11px;color:var(--muted);margin:10px 0 0}.notice{display:none;padding:12px;border-radius:10px;background:var(--mint);color:var(--dark);font-size:13px;margin-bottom:12px}.notice.show{display:block}.contact-strip{display:flex;gap:20px;flex-wrap:wrap;margin-top:24px;color:#e2eee5;font-size:14px}.site-footer{padding:28px 0;background:#1d3328;color:#dce7df;font-size:13px}.footer-inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.footer-inner a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:850px){.nav{display:none;position:absolute;top:78px;left:0;right:0;background:var(--cream);padding:18px 22px 24px;flex-direction:column;align-items:flex-start;border-bottom:1px solid var(--line)}.nav.open{display:flex}.menu-toggle{display:block}.header-cta{display:none}.hero{padding:48px 0}.hero-grid,.about-grid,.cta{grid-template-columns:1fr}.hero-art{min-height:360px}.cards{grid-template-columns:repeat(2,1fr)}.steps{grid-template-columns:1fr}.about-grid{gap:28px}.cta{padding:28px}.section{padding:62px 0}}
@media(max-width:560px){.container{width:calc(100% - 28px)}.header-inner{min-height:70px}.nav{top:70px}.hero-grid{gap:28px}.hero-art{min-height:320px;padding:18px}.hero-art:before{width:230px;height:230px}.hero-art:after{width:290px;height:290px}.study-card{padding:21px}.floating-note{bottom:16px}.cards,.quote-grid{grid-template-columns:1fr}.section{padding:52px 0}.section-head{margin-bottom:26px}.trust-row{gap:12px}.hero-actions .button{width:100%}.about-panel{min-height:260px;padding:26px}.cta{padding:22px}.form-box{padding:18px}h1{font-size:42px}}

/* 2026 exam-focused visual refresh */
:root{--green:#315c48;--dark:#1f4031;--mint:#e7efe8;--cream:#f7f7f1;--ink:#202a24;--muted:#68756d;--line:#dce5dd;--gold:#c6a66a;--shadow:0 20px 55px rgba(28,59,41,.12)}
.header-inner{min-height:82px}.brand-mark{background:linear-gradient(145deg,#426f55,#234431);box-shadow:0 7px 18px rgba(37,74,51,.18)}.brand small{letter-spacing:.04em;text-transform:none;font-size:12px}.header-actions{display:flex;align-items:center;gap:10px}.header-actions .button{padding:11px 17px;font-size:13px}.new-site-link{border-color:#c7d5ca;background:#fff}.new-site-link span{color:#a98243}.hero{padding:48px 0 66px;background:radial-gradient(ellipse at 0 0,#e9f0e7 0,transparent 48%),linear-gradient(180deg,#fbfbf7,#f6f7f1)}.hero-grid{grid-template-columns:.94fr 1.06fr;gap:42px}.hero h1{font-size:clamp(42px,5vw,66px);line-height:1.04;margin:23px 0 20px}.hero h1 em{display:block;color:var(--green);font-style:normal}.hero .lead{font-size:17px;line-height:1.75}.hero-photo{position:relative;min-height:460px;border-radius:30px;overflow:hidden;box-shadow:var(--shadow);background:#dce7dd}.hero-photo>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}.hero-photo:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(19,39,27,.46));pointer-events:none}.photo-caption{position:absolute;z-index:2;left:22px;bottom:22px;display:flex;align-items:center;gap:12px;padding:13px 17px;border:1px solid rgba(255,255,255,.7);border-radius:17px;background:rgba(255,255,255,.93);box-shadow:0 12px 30px rgba(0,0,0,.12);max-width:calc(100% - 44px)}.caption-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#e6f0e7;color:#315c48;font-weight:900}.photo-caption strong,.photo-caption small{display:block}.photo-caption strong{font-size:13px;color:#26392d}.photo-caption small{font-size:11px;color:#6b776f}.photo-label{position:absolute;z-index:2;right:18px;top:18px;padding:9px 13px;border-radius:99px;background:rgba(31,64,49,.88);color:#fff;font-size:9px;font-weight:800;letter-spacing:.14em}.exam-section{padding:82px 0;background:#f0f4ed}.exam-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.exam-card{position:relative;isolation:isolate;overflow:hidden;min-height:290px;padding:30px;border-radius:26px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;box-shadow:var(--shadow)}.exam-card:before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(120deg,rgba(19,48,34,.96),rgba(42,83,59,.88))}.exam-ege:before{background:linear-gradient(120deg,rgba(34,55,45,.96),rgba(91,105,70,.9))}.exam-card:after{content:"";position:absolute;z-index:-1;width:270px;height:270px;border:1px solid rgba(255,255,255,.17);border-radius:50%;right:-70px;bottom:-110px;box-shadow:0 0 0 25px rgba(255,255,255,.035),0 0 0 55px rgba(255,255,255,.025)}.exam-card-top{display:flex;align-items:center;justify-content:space-between}.exam-tag{font-size:11px;font-weight:800;letter-spacing:.12em;color:#f3e6c8}.exam-symbol{font-size:13px;font-weight:900;letter-spacing:.16em;color:rgba(255,255,255,.76)}.exam-card h3{font-size:32px;letter-spacing:-.035em;margin:30px 0 10px}.exam-card p{max-width:480px;color:rgba(255,255,255,.83);font-size:15px;line-height:1.7}.text-link{display:inline-flex;gap:12px;align-items:center;color:#f4e4c3;font-weight:750;font-size:14px;margin-top:8px}.exam-decoration{position:absolute;right:20px;bottom:-32px;font-size:170px;line-height:1;font-weight:900;color:rgba(255,255,255,.055);letter-spacing:-.1em;pointer-events:none}.subject-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.subject-card{padding:22px 20px 20px;border:1px solid #e4eae3;border-radius:20px;background:#fff;transition:.22s;min-height:190px}.subject-card:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:#cbd9cd}.subject-icon{display:grid;place-items:center;width:48px;height:48px;margin-bottom:17px;border-radius:15px;background:linear-gradient(145deg,#edf4ed,#e0ebe1);color:#315c48;font-weight:850;font-size:18px}.subject-card h3{font-size:17px;margin:0 0 7px}.subject-card p{font-size:13px;line-height:1.6;color:var(--muted);margin:0}.other-directions{display:flex;align-items:center;justify-content:center;gap:13px;flex-wrap:wrap;margin-top:27px;padding:17px 20px;border-radius:16px;background:#f6f8f4;color:#54645a;font-size:12px}.other-directions strong{color:#315c48}.other-directions i{width:4px;height:4px;border-radius:50%;background:#b79b69}.about-section{background:linear-gradient(180deg,#f7f7f1,#edf3ed)}.about-grid{grid-template-columns:1fr 1fr;gap:65px}.about-visual{position:relative;min-height:390px;border-radius:28px;overflow:hidden;background:linear-gradient(145deg,#244532,#52745b);padding:30px;display:flex;align-items:flex-end;box-shadow:var(--shadow)}.about-visual:before,.about-visual:after{content:"";position:absolute;border:1px solid rgba(255,255,255,.18);border-radius:50%}.about-visual:before{width:330px;height:330px;top:-105px;right:-50px}.about-visual:after{width:230px;height:230px;top:-55px;right:0}.about-stamp{position:absolute;top:36px;left:32px;color:rgba(255,255,255,.78);font-size:12px;font-weight:850;line-height:2;letter-spacing:.15em}.about-quote{position:relative;z-index:1;max-width:360px;color:white;font-size:30px;font-weight:750;line-height:1.22;letter-spacing:-.04em}.about-copy .button{margin-top:25px}.check-list{gap:15px}.check-list li{font-size:14px;color:#47584d}.step{background:#f6f8f4;border-top:3px solid #547b5d;padding:28px;border-radius:0 0 18px 18px}.step-number{display:grid;place-items:center;width:43px;height:43px;border-radius:14px;background:#e4ede5;color:#315c48;font-size:14px;letter-spacing:0}.step h3{font-size:19px}.faq-section{background:#f7f7f1}.faq{padding:8px 28px;border-radius:22px;background:#fff;box-shadow:0 10px 35px rgba(28,59,41,.05)}.faq details{padding:21px 0}.faq summary{font-size:15px}.contact-section{background:#fff}.cta{background:linear-gradient(125deg,#1e4030,#345e46);box-shadow:var(--shadow);padding:42px}.cta h2{font-size:clamp(30px,3.6vw,43px)}.cta .eyebrow{background:rgba(255,255,255,.13);color:#f3e8d0}.form-box{box-shadow:0 14px 38px rgba(12,35,22,.12)}.form-box input:focus,.form-box textarea:focus{outline:2px solid #9db8a2;border-color:#7e9d85}.form-box .button{border-radius:12px}.new-site-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:22px;padding:23px 27px;border:1px solid #dfe8df;border-radius:20px;background:#f3f7f2}.new-site-banner strong,.new-site-banner span{display:block}.new-site-banner strong{font-size:16px;color:#294a36}.new-site-banner span{font-size:13px;color:#718076;margin-top:3px}.button-light{background:#fff;color:#315c48;border-color:#d7e2d8}.button-light:hover{background:#e7efe8;color:#1f4031}.site-footer{background:#1c3829}.footer-inner a{text-decoration:none}.footer-inner a:hover{color:#e6d4ad}
@media(max-width:950px){.hero-grid{grid-template-columns:1fr 1fr;gap:25px}.hero-photo{min-height:410px}.subject-grid{grid-template-columns:repeat(2,1fr)}.header-actions{gap:7px}.header-actions .button{padding:10px 12px}.nav{gap:14px}}
@media(max-width:850px){.header-inner{min-height:72px}.nav{top:72px}.header-actions{margin-left:auto}.header-cta{display:none!important}.new-site-link{display:inline-flex!important}.hero-grid,.about-grid{grid-template-columns:1fr}.hero-copy{max-width:680px}.hero-photo{min-height:390px}.exam-section{padding:62px 0}.about-grid{gap:30px}.about-visual{min-height:300px}.cta{grid-template-columns:1fr}.header-actions .button{font-size:12px}}
@media(max-width:560px){.container{width:calc(100% - 28px)}.brand{gap:8px}.brand-mark{width:38px;height:38px}.brand small{font-size:10px}.header-actions .button{padding:9px 11px;font-size:11px}.menu-toggle{font-size:23px}.hero{padding:35px 0 45px}.hero h1{font-size:42px}.hero .lead{font-size:15px}.hero-photo{min-height:330px;border-radius:22px}.photo-caption{left:12px;bottom:12px;max-width:calc(100% - 24px);padding:10px 12px}.photo-caption small{font-size:10px}.photo-label{right:10px;top:10px;font-size:8px}.exam-grid{grid-template-columns:1fr}.exam-card{min-height:260px;padding:24px}.exam-card h3{font-size:28px}.subject-grid{grid-template-columns:1fr 1fr;gap:10px}.subject-card{padding:16px 14px;min-height:185px}.subject-card h3{font-size:15px}.subject-card p{font-size:12px}.subject-icon{width:42px;height:42px;margin-bottom:13px}.other-directions{gap:9px;padding:14px}.other-directions span{width:100%;text-align:center}.about-visual{min-height:270px;padding:23px}.about-quote{font-size:25px}.about-stamp{left:24px;top:25px}.faq{padding:5px 17px}.faq summary{font-size:14px}.cta{padding:22px}.new-site-banner{align-items:flex-start;flex-direction:column;padding:19px}.new-site-banner .button{width:100%}.footer-inner{flex-direction:column;gap:10px}}

/* Header refinement 2.0.1: balanced desktop alignment and clean mobile menu */
.site-header{background:rgba(250,250,246,.97);box-shadow:0 4px 22px rgba(31,64,49,.045)}
.header-inner{min-height:78px;display:grid;grid-template-columns:minmax(205px,1fr) auto minmax(205px,1fr);align-items:center;column-gap:28px}
.brand{justify-self:start;min-width:0;white-space:nowrap;gap:11px;font-size:18px;line-height:1.2}
.brand-name{display:block}.brand small{margin-top:4px;font-weight:500;color:#778278;line-height:1.2}
.brand .custom-logo-link{display:flex;align-items:center}.brand .custom-logo{max-height:48px;width:auto}
.nav{position:static;display:flex;align-items:center;justify-content:center;gap:clamp(14px,2vw,27px);white-space:nowrap;font-size:13px;font-weight:650;color:#405448}
.nav a{padding:9px 0;transition:color .18s ease}.nav a:hover{color:#8a6d3e}
.header-actions{justify-self:end;display:flex;align-items:center}
.header-actions .new-site-link{display:inline-flex;min-height:44px;padding:11px 18px;border:0;border-radius:999px;background:#315c48;color:#fff;font-size:12px;font-weight:750;white-space:nowrap;box-shadow:0 7px 18px rgba(37,74,51,.15)}
.header-actions .new-site-link:hover{background:#1f4031;color:#fff}
.header-actions .new-site-link span{font-size:16px;color:#f0dfbd}
.mobile-new-site,.menu-toggle{display:none}
@media(max-width:1050px) and (min-width:851px){.header-inner{grid-template-columns:minmax(190px,.9fr) auto minmax(180px,.8fr);column-gap:16px}.nav{gap:13px;font-size:12px}.header-actions .new-site-link{padding:10px 13px;font-size:11px}.brand{font-size:16px}.brand-mark{width:38px;height:38px}}
@media(max-width:850px){
 .header-inner{position:relative;display:flex;min-height:72px;justify-content:space-between;gap:14px}
 .brand{font-size:17px}.brand-mark{width:40px;height:40px;flex:0 0 40px}.brand small{font-size:10px}
 .header-actions{display:none}
 .menu-toggle{display:flex;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;padding:10px;border:1px solid #dbe5dc;border-radius:13px;background:#fff;cursor:pointer}
 .menu-toggle span{display:block;width:21px;height:2px;border-radius:2px;background:#315c48;transition:transform .2s,opacity .2s}
 .menu-toggle[aria-expanded="true"] span:first-child{transform:translateY(7px) rotate(45deg)}
 .menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
 .menu-toggle[aria-expanded="true"] span:last-child{transform:translateY(-7px) rotate(-45deg)}
 .nav{display:none;position:absolute;top:calc(100% + 1px);left:-14px;right:-14px;z-index:25;padding:13px 20px 20px;background:#fbfbf7;border-bottom:1px solid #dce5dd;box-shadow:0 16px 24px rgba(31,64,49,.1);flex-direction:column;align-items:stretch;gap:2px;white-space:normal}
 .nav.open{display:flex}
 .nav a{padding:11px 4px;border-bottom:1px solid #edf0eb;font-size:14px}
 .nav .mobile-new-site{display:flex;align-items:center;justify-content:space-between;margin-top:9px;padding:13px 16px;border:0;border-radius:12px;background:#315c48;color:white;font-weight:750}
 .nav .mobile-new-site span{color:#f0dfbd;font-size:17px}
}
@media(max-width:420px){.brand{font-size:15px;gap:8px}.brand-mark{width:37px;height:37px;flex-basis:37px}.brand small{font-size:9px}.header-inner{min-height:68px}}

/* Brand mark: house + open book + rising sun */
.brand-symbol{display:block;width:58px;height:48px;flex:0 0 58px;object-fit:contain}
.brand-name{font-family:Georgia,"Times New Roman",serif;font-size:20px;font-weight:700;letter-spacing:-.035em;color:#203d2c}
.brand-name small{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:10px;letter-spacing:.015em;font-weight:500;color:#78847b}
@media(max-width:560px){.brand-symbol{width:47px;height:42px;flex-basis:47px}.brand-name{font-size:16px}.brand-name small{font-size:9px}}

.local-seo-section{background:#f4f7f2}.local-seo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.local-seo-grid article{padding:24px;border:1px solid #e0e9e0;border-radius:20px;background:#fff}.local-seo-grid h3{margin:0 0 10px;font-size:18px;color:#294a36}.local-seo-grid p{margin:0;color:#657169;font-size:14px;line-height:1.7}.local-seo-note{margin:20px auto 0;max-width:850px;text-align:center;color:#78847b;font-size:12px}@media(max-width:700px){.local-seo-grid{grid-template-columns:1fr}}

/* Local SEO service landing pages */
.service-page-hero{padding:42px 0 74px;background:linear-gradient(135deg,#f7f7ef 0%,#fff 58%,#edf3e9 100%)}
.breadcrumbs{font-size:13px;color:#718073;margin:0 0 34px}.breadcrumbs a{color:#28613c;text-decoration:none}.breadcrumbs span{margin-right:5px}
.service-page-hero h1{max-width:900px;font-family:Georgia,'Times New Roman',serif;font-size:clamp(36px,5vw,62px);line-height:1.08;letter-spacing:-.035em;color:#183b27;margin:15px 0 26px}
.service-page-content{max-width:850px;color:#465349;font-size:17px;line-height:1.8}.service-page-content .service-intro{font-size:20px;line-height:1.65;color:#283b2d;margin:0 0 34px}.service-page-content h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(24px,3vw,32px);line-height:1.2;color:#1b432b;margin:38px 0 12px}.service-page-content h3{font-size:18px;line-height:1.4;color:#234a31;margin:24px 0 6px}.service-page-content p{margin:0 0 14px}.service-page-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:34px}.service-related{padding:32px 0 54px;background:#fff}.related-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.related-links a{display:inline-flex;padding:11px 16px;border:1px solid #dce5d8;border-radius:30px;color:#245336;text-decoration:none;background:#f8faf6;font-size:14px}.related-links a:hover{background:#eaf1e7;border-color:#a8bea9}.local-seo-grid article h3 a{color:inherit;text-decoration:none}.local-seo-grid article h3 a:hover{color:#39784a}.local-seo-grid .text-link{display:inline-block;margin-top:6px;color:#2c6b3e;font-weight:600;text-decoration:none}
@media(max-width:640px){.service-page-hero{padding:28px 0 48px}.breadcrumbs{margin-bottom:24px}.service-page-content{font-size:16px}.service-page-content .service-intro{font-size:18px}.service-page-actions .button{width:100%;justify-content:center}.related-links a{font-size:13px;padding:10px 13px}}

/* Школа на Дому — complete v3 design system */
:root{--green:#315b42;--dark:#183b2a;--mint:#e7eee2;--cream:#f7f6ef;--ink:#1d2b22;--muted:#667268;--line:#d9e1d6;--gold:#b99b55;--radius:24px;--shadow:0 16px 42px rgba(24,59,42,.10)}
body{background:var(--cream);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.site-header{position:sticky;top:0;z-index:50;background:rgba(250,250,246,.96);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.header-inner{min-height:82px;gap:18px}
.brand img{display:block;width:250px;height:auto;max-height:72px}
.nav{gap:17px;font-size:13px;font-weight:650;color:#34463a}
.nav a:hover,.footer-links a:hover{color:var(--green)}
.header-actions{display:flex;align-items:center;gap:12px}
.header-phone{white-space:nowrap;font-weight:750;color:var(--dark);font-size:14px}
.header-cta{padding:12px 18px;font-size:13px}
.hero{padding:52px 0 58px;background:linear-gradient(110deg,#f7f6ef 0%,#edf2e9 100%);overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:38px;align-items:center}
.hero-copy{position:relative;z-index:2}
.eyebrow{background:#e8eedf;color:var(--dark);letter-spacing:.07em}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;color:#173b2a}
h1{font-size:clamp(40px,4.6vw,64px);line-height:1.03;letter-spacing:-.045em;margin:20px 0}
h1 strong{font-weight:800;color:var(--dark)}
.hero h1 em{display:block;color:#64805b;font-style:normal}
.lead{font-size:18px;line-height:1.65;color:#59675d;max-width:620px}
.hero-photo{height:440px;position:relative;border-radius:30px;overflow:hidden;background:#dfe9dc;box-shadow:var(--shadow)}
.hero-photo>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.photo-caption{position:absolute;left:18px;right:18px;bottom:18px;padding:15px 18px;background:rgba(255,255,255,.93);border-radius:16px;box-shadow:var(--shadow);color:var(--dark)}
.photo-caption b{display:block;font-size:16px}
.photo-caption small{display:block;color:var(--muted);font-size:12px}
.hero-actions{gap:12px;margin-top:28px}
.button{background:var(--green);border-color:var(--green);box-shadow:0 7px 18px rgba(49,91,66,.12)}
.button:hover{background:var(--dark);border-color:var(--dark)}
.button-outline{background:transparent;color:var(--green);box-shadow:none}
.trust-row{gap:16px 22px;font-size:13px}
.exam-feature{padding:76px 0;background:#edf2e9}
.section{padding:78px 0}
.section-white{background:#fff}
.section-head{max-width:760px;margin:0 auto 36px;text-align:center}
.section-head h2,.about-copy h2,.cta h2{font-size:clamp(30px,3.6vw,44px);line-height:1.12;letter-spacing:-.035em}
.section-head p{font-size:16px;line-height:1.7}
.exam-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.exam-card{position:relative;min-height:360px;border-radius:26px;overflow:hidden;background:var(--dark);box-shadow:var(--shadow);isolation:isolate}
.exam-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.exam-card:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(17,48,32,.96),rgba(17,48,32,.80) 55%,rgba(17,48,32,.10))}
.exam-oge:after{background:linear-gradient(90deg,rgba(239,242,228,.97),rgba(239,242,228,.88) 52%,rgba(239,242,228,.12))}
.exam-content{position:relative;z-index:1;max-width:70%;padding:32px;color:white}
.exam-oge .exam-content{color:var(--dark)}
.exam-tag{display:inline-block;padding:7px 11px;border-radius:30px;background:rgba(255,255,255,.18);font-size:11px;letter-spacing:.1em;font-weight:800}
.exam-oge .exam-tag{background:rgba(49,91,66,.1)}
.exam-content h3{font-size:34px;color:inherit;margin:18px 0 10px}
.exam-content p{line-height:1.65;color:inherit;opacity:.9}
.button-light{background:#fff;color:var(--dark);border-color:#fff;box-shadow:none}
.button-light:hover{background:#e8eedf;color:var(--dark);border-color:#e8eedf}
.subject-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.subject-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 8px 22px rgba(24,59,42,.05);transition:transform .2s,box-shadow .2s}
.subject-card:hover,.direction-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.subject-card>img{width:100%;height:150px;object-fit:cover;display:block}
.subject-card-body{padding:17px;position:relative;flex:1}
.subject-icon{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--mint);color:var(--green);font-weight:850;font-size:15px}
.subject-card h3{font-size:21px;margin:12px 0 7px}
.subject-card p{font-size:13px;line-height:1.55;color:var(--muted);min-height:60px}
.text-link{font-weight:800;color:var(--green);font-size:13px}
.direction-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.direction-card{overflow:hidden;border-radius:24px;background:white;border:1px solid var(--line);box-shadow:0 8px 24px rgba(24,59,42,.05);transition:.2s}
.direction-card>img{width:100%;height:205px;object-fit:cover;display:block}
.direction-card>div{padding:22px}
.direction-card h3{font-size:25px;margin:12px 0 8px}
.direction-card p{font-size:14px;color:var(--muted);line-height:1.65;min-height:68px}
.direction-card b{color:var(--green);font-size:13px}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:54px;align-items:center}
.about-visual{height:390px;position:relative;border-radius:28px;overflow:hidden;background:var(--mint)}
.about-visual>img{width:100%;height:100%;object-fit:cover}
.about-stamp{position:absolute;left:20px;bottom:20px;padding:18px 22px;border-radius:15px;background:rgba(24,59,42,.92);color:white;font-weight:850;line-height:1.5;letter-spacing:.08em}
.about-copy h2{margin:16px 0}
.check-list{list-style:none;padding:0;margin:24px 0;display:grid;gap:13px}
.check-list li{display:flex;gap:12px;align-items:flex-start}
.check-list li:before{content:"✓";display:grid;place-items:center;flex:0 0 24px;height:24px;background:var(--mint);color:var(--green);border-radius:50%;font-weight:900}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.step{padding:26px;border:1px solid var(--line);border-radius:20px;background:#fff}
.step-number{color:var(--gold);font-weight:900;letter-spacing:.12em}
.step h3{font-size:23px;margin:12px 0 8px}
.step p{font-size:14px;color:var(--muted);margin:0}
.faq{max-width:900px;margin:auto}
.faq details{padding:20px 22px;border:1px solid var(--line);border-radius:16px;background:#fff;margin:10px 0}
.faq summary{font-weight:750;cursor:pointer;color:var(--dark)}
.faq details p{color:var(--muted);margin:12px 0 0}
.cta{padding:42px;border-radius:28px;background:linear-gradient(135deg,#183b2a,#315b42);color:white;display:grid;grid-template-columns:1fr .8fr;gap:32px;align-items:center}
.cta h2{color:white}
.cta p{color:#e0e9df}
.form-box{background:white;color:var(--ink);border-radius:22px;padding:24px}
.form-box label{display:block;font-size:13px;font-weight:750;margin:12px 0 6px}
.form-box input,.form-box textarea{width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:12px;font:inherit;background:#fbfcf9}
.form-box button{margin-top:14px;width:100%}
.form-note{font-size:11px;color:var(--muted);margin:12px 0 0}
.contact-strip{display:flex;gap:14px;flex-wrap:wrap;color:#f0f4ec;font-size:14px}
.site-footer{padding:44px 0;background:#122f21;color:#eaf0e9}
.footer-inner{display:grid;grid-template-columns:230px 1fr;gap:12px 35px;align-items:center}
.footer-brand img{width:220px;filter:brightness(0) invert(1)}
.footer-inner p{max-width:600px;color:#c5d4c7;margin:0}
.footer-links{grid-column:1/-1;display:flex;gap:24px;flex-wrap:wrap;padding:18px 0;border-top:1px solid rgba(255,255,255,.15)}
.footer-inner small{grid-column:1/-1;color:#aabdad}
.service-page-hero{padding:70px 0;background:linear-gradient(120deg,#f7f6ef,#edf2e9)}
.service-page-hero h1{max-width:900px}
.service-page-content{max-width:900px;font-size:17px;line-height:1.8;color:#4e5d52}
.service-page-content h2{margin:32px 0 10px;font-size:28px}
.service-page-content h3{font-size:21px}
.service-page-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}
.service-related{padding:38px 0;background:#fff}
.related-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.related-links a{padding:10px 15px;background:var(--mint);border-radius:30px;color:var(--dark);font-weight:700;font-size:13px}
@media(max-width:1100px){.nav{gap:10px;font-size:12px}.header-phone{display:none}.brand img{width:210px}.subject-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){.header-inner{min-height:70px}.brand img{width:205px}.header-actions{margin-left:auto}.header-cta{display:none}.menu-toggle{display:block}.nav{display:none;position:absolute;top:70px;left:0;right:0;background:#fbfcf8;padding:18px 22px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch;gap:0}.nav.open{display:flex}.nav a{padding:12px 0;border-bottom:1px solid var(--line);font-size:15px}.hero{padding:34px 0 42px}.hero-grid{grid-template-columns:1fr;gap:25px}.hero-photo{height:300px}.hero h1{font-size:42px}.lead{font-size:16px}.exam-feature,.section{padding:54px 0}.exam-grid,.about-grid,.cta{grid-template-columns:1fr}.exam-card{min-height:320px}.exam-content{max-width:88%;padding:25px}.exam-content h3{font-size:29px}.subject-grid{grid-template-columns:repeat(2,1fr);gap:12px}.subject-card>img{height:120px}.subject-card-body{padding:13px}.subject-card h3{font-size:18px}.subject-card p{font-size:12px;min-height:0}.direction-grid{grid-template-columns:1fr}.direction-card{display:grid;grid-template-columns:38% 1fr}.direction-card>img{height:100%;min-height:220px}.direction-card>div{padding:18px}.direction-card h3{font-size:21px}.direction-card p{min-height:0}.steps{grid-template-columns:1fr}.about-visual{height:280px}.cta{padding:26px;gap:22px}.footer-inner{grid-template-columns:1fr}.footer-links,.footer-inner small{grid-column:auto}}
@media(max-width:420px){.container{width:min(100% - 28px,1160px)}.brand img{width:175px}.hero h1{font-size:36px}.hero-photo{height:245px}.subject-grid{gap:9px}.subject-card>img{height:100px}.direction-card{grid-template-columns:1fr}.direction-card>img{height:170px;min-height:0}.exam-card{min-height:360px}.exam-content{max-width:100%}}


/* v4 visual rebuild: aligned editorial grid inspired by the approved reference */
:root{--green:#155b35;--dark:#103d29;--mint:#e9efdf;--cream:#fbfaf5;--ink:#17251c;--muted:#647066;--line:#e5e8df}
body{background:#fbfaf5;color:var(--ink)}
.container{width:min(1240px,calc(100% - 64px))}
.site-header{background:rgba(255,255,251,.97);border-bottom:1px solid #edf0e8}
.header-inner{min-height:76px;gap:20px}
.brand img{width:245px;height:auto;max-height:66px;object-fit:contain}
.nav{gap:clamp(12px,1.55vw,23px);font-size:13px;white-space:nowrap}
.header-actions{display:flex;align-items:center;gap:10px}
.header-phone,.header-cta{border-radius:30px;padding:12px 18px;background:var(--green);color:#fff;font-weight:700;font-size:13px;white-space:nowrap}
.header-phone:hover,.header-cta:hover{background:var(--dark);color:#fff}
.header-cta{border:1px solid var(--green)}
.hero-v4{padding:42px 0 34px;background:linear-gradient(90deg,#fbfaf5 0%,#fbfaf5 45%,#f4f4e9 100%);overflow:hidden}
.hero-v4-grid{display:grid;grid-template-columns:1fr 1.05fr;gap:40px;align-items:center}
.hero-v4-copy{padding:14px 0}
.hero-v4 h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(48px,5.3vw,76px);line-height:.99;letter-spacing:-.045em;margin:20px 0 14px;color:#13271c}
.hero-v4 h1 em{color:#6e8d5e;font-style:normal}
.hero-v4-lead{font-size:19px;line-height:1.5;max-width:590px;color:#303d34;margin-bottom:22px}
.hero-v4-points{display:grid;grid-template-columns:1fr 1fr;gap:13px 16px;margin:24px 0 26px}
.hero-v4-points span{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;color:#34443a}
.hero-v4-points i{font-style:normal;display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#e8eedb;color:#235d38;font-size:18px}
.hero-v4 .hero-actions{margin-top:0;gap:12px}
.hero-v4 .button{font-size:14px;padding:14px 22px}
.hero-v4-visual{position:relative;min-width:0}
.hero-v4-visual>img{display:block;width:100%;height:390px;object-fit:cover;object-position:center 35%;border-radius:8px 8px 8px 8px;box-shadow:0 18px 40px rgba(35,57,39,.12)}
.hero-v4-note{position:absolute;right:-14px;top:22px;display:flex;align-items:center;gap:12px;width:235px;padding:17px;background:#155b35;color:white;border-radius:15px;box-shadow:0 12px 28px #173b292e}
.hero-v4-note>span{font-size:27px}.hero-v4-note b,.hero-v4-note small{display:block}.hero-v4-note b{font-size:14px;line-height:1.3}.hero-v4-note small{font-size:11px;line-height:1.4;margin-top:5px;color:#e4eee5}
.exam-v4{padding:12px 0 28px}
.exam-v4-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.exam-v4-card{position:relative;min-height:220px;overflow:hidden;border-radius:16px;background:#e9eadf;display:flex;align-items:center;padding:24px}
.exam-v4-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.exam-v4-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(250,249,239,.98) 0%,rgba(250,249,239,.94) 42%,rgba(250,249,239,.1) 100%)}
.exam-v4-copy{position:relative;z-index:1;width:64%;max-width:430px}
.exam-v4-copy .eyebrow{font-size:10px;padding:5px 10px}
.exam-v4-copy h2{font-family:Georgia,serif;font-size:clamp(27px,2.7vw,38px);line-height:1.05;margin:9px 0}
.exam-v4-copy p{font-size:14px;line-height:1.45;margin-bottom:13px;max-width:360px}
.exam-v4-copy .button{font-size:12px;padding:10px 15px}
.exam-v4-card ul{position:absolute;z-index:2;right:15px;top:50%;transform:translateY(-50%);list-style:none;margin:0;padding:12px 14px;background:rgba(255,255,250,.93);border-radius:12px;box-shadow:0 5px 18px #253c2718;font-size:11px;line-height:1.55}
.exam-v4-card li{margin:5px 0;white-space:nowrap}.exam-v4-card li:before{content:"✓";display:inline-grid;place-items:center;background:#e3edd8;color:#2b6b3c;border-radius:50%;width:19px;height:19px;margin-right:7px;font-weight:800}
.section-v4{padding:36px 0}
.section-title-v4{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:20px}
.section-title-v4 h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(29px,3vw,39px);line-height:1.12;margin:6px 0 0;letter-spacing:-.025em}
.section-title-v4>a{font-size:13px;font-weight:700;color:#244d34;white-space:nowrap}
.subjects-v4{background:#fff}
.subject-v4-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:10px}
.subject-v4-card{display:flex;flex-direction:column;min-width:0;border:1px solid #edf0e8;border-radius:11px;overflow:hidden;background:#fff;transition:transform .2s,box-shadow .2s}
.subject-v4-card:hover{transform:translateY(-4px);box-shadow:0 12px 26px #223e2818}
.subject-v4-card>img{display:block;width:100%;height:94px;object-fit:cover}
.subject-v4-info{min-height:112px;padding:9px 6px 8px;text-align:center;display:flex;align-items:center;flex-direction:column}
.subject-v4-info h3{font-size:12px;line-height:1.2;margin:0 0 6px;font-weight:800;min-height:29px;display:flex;align-items:center;justify-content:center}
.subject-v4-info span,.subject-v4-info small{font-size:10px;line-height:1.35;color:#566157}
.subject-v4-info small{margin-top:2px}
.subject-v4-info b{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#78966a;color:white;margin-top:7px;font-size:15px}
.facts-v4{padding:24px 0;background:linear-gradient(90deg,#0e3b28,#23593a);color:white}
.facts-v4-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.facts-v4-grid>div{position:relative;display:grid;grid-template-columns:54px 1fr;grid-template-rows:auto auto auto;column-gap:14px;padding:5px 22px;border-right:1px solid #ffffff38}
.facts-v4-grid>div:last-child{border:0}
.facts-v4-grid i{grid-row:1/4;align-self:center;display:grid;place-items:center;width:52px;height:52px;border:1px solid #d5e6c1;border-radius:50%;font-style:normal;font-size:22px;color:#e2efcb}
.facts-v4-grid b{font-family:Georgia,serif;font-size:27px;line-height:1.05}
.facts-v4-grid strong{font-family:Georgia,serif;font-size:16px;line-height:1.2}
.facts-v4-grid small{font-size:11px;color:#dce8dd;margin-top:5px}
.benefits-v4{background:#fff}
.benefits-v4-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px 26px}
.benefits-v4-grid article{display:flex;align-items:flex-start;gap:13px;padding:10px 0;border-right:1px solid #edf0e8}
.benefits-v4-grid article:nth-child(3n){border:0}
.benefits-v4-grid i{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:50%;background:#e9efdf;color:#225b38;font-size:22px;font-style:normal}
.benefits-v4-grid b{font-size:14px}.benefits-v4-grid p{font-size:12px;line-height:1.45;color:#69746a;margin:4px 0 0;max-width:260px}
.reviews-v4{background:#f6f6ef}
.review-v4-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.review-v4-grid blockquote{margin:0;padding:22px;background:white;border:1px solid #e8ecdf;border-radius:14px}
.review-v4-grid blockquote>div{color:#a88a39;letter-spacing:3px}
.review-v4-grid p{font-family:Georgia,serif;font-size:19px;line-height:1.35;margin:10px 0}
.review-v4-grid small{font-size:11px;color:#6b766c}
.contact-v4{background:#e9efdf}
.contact-v4-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:40px;align-items:center;padding-top:20px;padding-bottom:20px}
.contact-v4 h2{font-family:Georgia,serif;font-size:clamp(30px,3.2vw,42px);line-height:1.1;margin:12px 0}
.contact-v4 p{max-width:650px;color:#536155}
.contact-v4-details{display:flex;gap:18px;flex-wrap:wrap;font-size:14px;font-weight:700}
.contact-v4-actions{display:flex;flex-direction:column;gap:12px;align-items:stretch}
.contact-v4-actions .button{width:100%}.contact-v4-actions small{font-size:11px;color:#68756a;text-align:center}
@media(max-width:1100px){
 .container{width:min(100% - 40px,1000px)}
 .nav{gap:11px;font-size:12px}.brand img{width:205px}.header-phone{display:none}
 .subject-v4-grid{grid-template-columns:repeat(5,1fr)}.subject-v4-card>img{height:120px}
}
@media(max-width:760px){
 .container{width:calc(100% - 32px)}
 .header-inner{min-height:68px}.brand img{width:190px;max-height:56px}
 .nav{display:none;position:absolute;left:16px;right:16px;top:68px;background:#fff;padding:16px;border-radius:14px;box-shadow:0 14px 30px #173b2920;flex-direction:column;align-items:stretch;gap:0}
 .nav.is-open{display:flex}.nav a{padding:11px 8px;border-bottom:1px solid #edf0e8;font-size:14px}
 .header-actions{margin-left:auto}.header-cta{display:none}.menu-toggle{display:block;padding:7px}
 .hero-v4{padding:28px 0 22px}.hero-v4-grid{grid-template-columns:1fr;gap:22px}
 .hero-v4-copy{padding:0}.hero-v4 h1{font-size:clamp(42px,11vw,58px);margin:16px 0 12px}
 .hero-v4-lead{font-size:16px}.hero-v4-points{gap:10px 8px;margin:18px 0}
 .hero-v4-points span{font-size:11px;gap:7px}.hero-v4-points i{width:32px;height:32px;flex-basis:32px}
 .hero-v4 .hero-actions{display:grid;grid-template-columns:1fr}.hero-v4 .button{width:100%;font-size:13px}
 .hero-v4-visual>img{height:260px}.hero-v4-note{position:relative;right:auto;top:auto;bottom:auto;width:100%;max-width:none;margin:12px 0 0;padding:13px 16px;border-radius:14px;box-shadow:0 8px 20px #173b2920}.hero-v4-note>span{font-size:24px;flex:0 0 auto}.hero-v4-note b{font-size:14px}.hero-v4-note small{font-size:11px}
 .exam-v4{padding:10px 0 20px}.exam-v4-grid{grid-template-columns:1fr;gap:12px}
 .exam-v4-card{min-height:225px;padding:17px}.exam-v4-copy{width:72%}
 .exam-v4-copy h2{font-size:29px}.exam-v4-copy p{font-size:12px}
 .exam-v4-card ul{right:8px;padding:8px;font-size:9px}.exam-v4-card li{white-space:normal}
 .section-v4{padding:28px 0}.section-title-v4{align-items:flex-start;flex-direction:column;gap:8px}
 .section-title-v4 h2{font-size:30px}.subject-v4-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .subject-v4-card>img{height:125px}.subject-v4-info{min-height:104px}
 .subject-v4-info h3{font-size:13px;min-height:0}.subject-v4-info span,.subject-v4-info small{font-size:11px}
 .facts-v4{padding:18px 0}.facts-v4-grid{grid-template-columns:repeat(2,1fr);gap:0}
 .facts-v4-grid>div{padding:12px 8px;grid-template-columns:42px 1fr;column-gap:9px;border-right:1px solid #ffffff30;border-bottom:1px solid #ffffff30}
 .facts-v4-grid>div:nth-child(2n){border-right:0}.facts-v4-grid>div:nth-last-child(-n+2){border-bottom:0}
 .facts-v4-grid i{width:40px;height:40px;font-size:17px}.facts-v4-grid b{font-size:22px}.facts-v4-grid strong{font-size:13px}.facts-v4-grid small{font-size:10px}
 .benefits-v4-grid{grid-template-columns:1fr 1fr;gap:12px}
 .benefits-v4-grid article{gap:8px;border:0}.benefits-v4-grid i{flex-basis:38px;height:38px;font-size:17px}
 .benefits-v4-grid b{font-size:12px}.benefits-v4-grid p{font-size:10px}
 .review-v4-grid{grid-template-columns:1fr}.review-v4-grid blockquote{padding:17px}
 .contact-v4-grid{grid-template-columns:1fr;gap:18px}
 .contact-v4-details{flex-direction:column;gap:8px}
}

.header-wa{display:inline-flex;align-items:center;justify-content:center;padding:12px 17px;border-radius:30px;background:#247847;color:#fff;font-size:13px;font-weight:700;white-space:nowrap}.header-wa:hover{background:#155b35;color:#fff}
@media(max-width:1100px){.header-wa{display:none}}


/* v5 one-page header and supplied brand mark */
.brand{display:flex;align-items:center;gap:10px;flex-shrink:0}
.brand img{width:62px!important;height:62px!important;max-height:62px;object-fit:contain}
.brand-wordmark{display:flex;flex-direction:column;line-height:1.05}
.brand-wordmark b{font-family:Georgia,"Times New Roman",serif;font-size:23px;letter-spacing:-.03em;color:#152b1d;white-space:nowrap}
.brand-wordmark small{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#68766b;margin-top:5px}
.nav{gap:clamp(14px,2vw,26px)}
.site-footer .footer-brand{display:flex;align-items:center;gap:10px;font-family:Georgia,serif;font-size:21px}
.site-footer .footer-brand img{width:54px;height:54px;object-fit:contain}
@media(max-width:1100px){.brand img{width:54px!important;height:54px!important}.brand-wordmark b{font-size:20px}.nav{gap:12px}}
@media(max-width:760px){.brand img{width:48px!important;height:48px!important}.brand-wordmark b{font-size:18px}.brand-wordmark small{font-size:8px}.header-inner{gap:8px}}

/* v5.3.1: mobile image-first layout — keep all faces clear of text */
@media(max-width:760px){
 .hero-v4-visual{display:flex;flex-direction:column;gap:12px}
 .hero-v4-visual>img{height:250px;object-fit:cover;object-position:center 38%}
 .hero-v4-note{position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;margin:0!important}
 .exam-v4-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;min-height:0!important;padding:0!important;overflow:hidden}
 .exam-v4-card>img{position:relative!important;inset:auto!important;display:block;width:100%;height:220px;flex:0 0 220px;object-fit:cover;object-position:center 30%;z-index:0}
 .exam-v4-shade{display:none!important}
 .exam-v4-copy{position:relative!important;inset:auto!important;z-index:1;width:100%!important;max-width:none!important;padding:19px 18px 8px;background:#f8f7ef}
 .exam-v4-copy h2{font-size:30px!important}
 .exam-v4-copy p{font-size:14px!important;line-height:1.5}
 .exam-v4-copy .button{width:100%;white-space:normal;text-align:center}
 .exam-v4-card ul{position:relative!important;inset:auto!important;transform:none!important;display:grid;grid-template-columns:1fr 1fr;gap:5px 10px;margin:0!important;padding:8px 18px 19px!important;background:#f8f7ef!important;border-radius:0!important;box-shadow:none!important;font-size:11px!important;line-height:1.4}
 .exam-v4-card li{white-space:normal!important;margin:0!important;display:flex;align-items:flex-start;gap:5px}
 .exam-v4-card li:before{flex:0 0 18px;width:18px;height:18px;margin:0!important}
}
@media(max-width:420px){
 .hero-v4-visual>img{height:225px;object-position:center 35%}
 .exam-v4-card>img{height:205px;flex-basis:205px;object-position:center 28%}
 .exam-v4-copy{padding:17px 16px 7px}
 .exam-v4-card ul{padding:8px 16px 17px!important}
}
