/* Shared layout for individually researched commercial pages. */
body.commercial-emerald{--bg:#032d23;--surface:#073b30;--surface2:#0d493c;--border:#446d58;--soft-green:#0c4431;background:radial-gradient(ellipse 85% 760px at 18% 0%,#276d5140,transparent 76%),linear-gradient(180deg,#07392e,#032d23 1000px,#06362b 58%,#032b22)}
.commercial-emerald .inner-section{width:calc(100% - 56px);max-width:1536px;padding-top:28px}
.commercial-emerald .breadcrumbs{margin-bottom:24px}
.commercial-hero{--hero-text:#fff1d7;--hero-muted:#d0d9cd;--hero-gold:#ffd18e;position:relative;isolation:isolate;overflow:hidden;border-radius:24px;background:#032d23;min-height:620px;display:flex;align-items:center;padding:42px 34px}
.commercial-copy{position:relative;z-index:1;width:43%;max-width:510px;min-width:0}
.commercial-kicker{margin:0 0 22px;display:inline-flex;align-items:center;gap:9px;border:1px solid #a2b88770;background:#073a2c;padding:9px 12px;border-radius:13px;font-size:12px;color:var(--hero-text)}
.commercial-kicker .art{width:28px;height:28px}
.commercial-hero h1{font-family:'Cormorant Garamond',Georgia,serif;color:var(--hero-text);font-size:clamp(50px,4.1vw,64px);font-weight:600;line-height:1.04;letter-spacing:-.028em;margin:0}
.commercial-hero h1>span{display:block;color:var(--hero-gold);margin-top:7px}
.commercial-hero .commercial-lead{font-size:15px;line-height:1.8;max-width:400px;margin:24px 0 0;color:var(--hero-muted)}
.commercial-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.commercial-actions .button{padding:12px 15px;font-size:12px;min-height:48px;line-height:1.4;border-radius:14px;transform:none;box-shadow:none}
.commercial-actions .button-primary{background:linear-gradient(135deg,#ffd695,#ffc474);border:1px solid #ffdea7;color:#402b0d}
.commercial-actions .button-outline{background:#143a2a;border-color:#a4b28785;color:var(--hero-text)}
.commercial-actions .button-primary:hover{background:#ffe0a9}
.commercial-actions .button-outline:hover{background:#1c4a34}
.commercial-picture{position:absolute;inset:0;z-index:0;line-height:0;pointer-events:none}
.commercial-picture img{width:100%;height:100%;object-fit:cover;object-position:center 42%;max-width:none}
.commercial-block{margin-top:64px}
.commercial-heading{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:24px}
.commercial-heading h2{font-size:clamp(27px,2.55vw,38px);line-height:1.18;letter-spacing:-.035em;margin-top:15px}
.commercial-heading .section-context{max-width:520px;margin:0}
.commercial-direction-group+.commercial-direction-group{margin-top:28px}
.commercial-direction-group>h3{font-size:17px;margin-bottom:14px;color:var(--muted)}
.commercial-direction-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.commercial-direction{display:flex;align-items:center;gap:15px;min-width:0;padding:16px;border:1px solid var(--border);border-radius:18px;background:linear-gradient(135deg,#104b3b,#07392e)}
.commercial-direction .art{width:58px;height:58px;flex:none}
.commercial-direction strong{display:block;font-size:15px;line-height:1.4;color:var(--text)}
.commercial-direction small{display:block;margin-top:5px;font-size:11px;line-height:1.4;color:var(--muted)}
.commercial-direction:hover{background:var(--surface2);border-color:#98ad79}
.prep-planner{display:grid;grid-template-columns:1fr .9fr;gap:20px;align-items:stretch}
.prep-form,.prep-result{border:1px solid var(--border);border-radius:24px;padding:28px;background:linear-gradient(135deg,#0d4638,#07372d)}
.prep-form fieldset{border:0;padding:0;margin:0 0 22px;min-width:0}
.prep-form legend,.prep-field label{display:block;font-size:13px;font-weight:600;color:var(--text);margin-bottom:9px}
.prep-subjects{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.prep-subjects button{min-height:46px;border:1px solid var(--border);border-radius:12px;background:#06362b;color:var(--text);font-weight:650}
.prep-subjects button[aria-pressed=true]{background:#ffd18e;color:#402b0d;border-color:#ffdaa4}
.prep-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.prep-field{min-width:0}
.prep-number{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;border:1px solid #67886b;border-radius:13px;background:#042f25;overflow:hidden;min-height:48px}
.prep-number button{border:0;background:#104534;color:var(--text);font-size:21px;padding:0;line-height:1}
.prep-number button:hover{background:#1a5943}
.prep-number input,.prep-price input{appearance:textfield;-moz-appearance:textfield;width:100%;min-width:0;border:0;border-radius:0;background:transparent;color:var(--text);text-align:center;padding:10px 5px;font-size:15px;line-height:1.4;box-shadow:none}
.prep-form input::-webkit-inner-spin-button,.prep-form input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.prep-price{margin-top:22px}
.prep-price input{min-height:48px;text-align:left;padding:11px 14px;background:#042f25;border:1px solid #67886b;border-radius:13px}
.prep-price input::placeholder{color:var(--muted);opacity:1;font-size:12px}
.prep-form .prep-note{font-size:12px;line-height:1.6;margin-top:10px;color:var(--muted)}
.prep-error{margin-top:16px;border:1px solid #ffd18e;border-radius:13px;background:#6e3c2826;padding:12px;color:var(--text);font-size:13px}
.prep-result{background:radial-gradient(ellipse at 95% 0%,#a8b37215,transparent 65%),linear-gradient(145deg,#114b3a,#063428);display:flex;flex-direction:column}
.prep-result[data-invalid=true]{opacity:1;align-self:start}
.prep-result[data-invalid=true]>*{display:none!important}
.prep-result[data-invalid=true]::before{content:'Проверьте значения в форме';display:block;color:var(--text);font-size:18px;font-weight:600;line-height:1.5}
.prep-result-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:25px}
.prep-result-top>span{font-size:14px;font-weight:650}
.prep-period{border:1px solid #8da177;background:#0b3d2e;border-radius:10px;font-size:12px;padding:7px 11px;white-space:nowrap}
.prep-total{padding-bottom:24px;border-bottom:1px solid var(--border)}
.prep-total strong{display:block;font-family:'Cormorant Garamond',Georgia,serif;font-size:70px;line-height:1;color:#ffd18e;font-weight:600;letter-spacing:-.025em}
.prep-total p{font-size:13px;margin-top:12px;color:var(--muted)}
.prep-metrics{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:23px 0}
.prep-metrics strong{display:block;color:var(--text);font-size:22px;font-weight:650;line-height:1.3}
.prep-metrics span{display:block;font-size:12px;color:var(--muted);margin-top:5px}
.prep-budget{margin-top:auto;background:#07382b;border:1px solid #91a17980;border-radius:16px;padding:16px;display:flex;align-items:center;gap:14px}
.prep-budget .art{width:44px;height:44px;flex:none}
.prep-budget strong{display:block;color:var(--text);font-size:21px;line-height:1.4}
.prep-budget p{font-size:12px;line-height:1.6;margin-top:5px;color:var(--muted)}
.prep-assumptions{margin-top:15px;font-size:12px;line-height:1.6;color:var(--muted)}
.commercial-table-wrap{border:1px solid var(--border);border-radius:22px;overflow:hidden;background:linear-gradient(140deg,#0c4436,#06352b)}
.commercial-table{width:100%;border-collapse:collapse;table-layout:fixed}
.commercial-table caption{padding:18px 22px;text-align:left;background:#0d4032;font-size:13px;color:var(--muted);line-height:1.6;border-bottom:1px solid var(--border)}
.commercial-table th{padding:18px 22px;text-align:left;font-size:12px;line-height:1.6;letter-spacing:.01em;color:#e1d6a7;background:#0e4735;font-weight:650}
.commercial-table td{padding:22px;vertical-align:top;font-size:14px;line-height:1.75;color:var(--muted);border-top:1px solid var(--border);overflow-wrap:anywhere}
.commercial-table td:first-child{color:var(--text);font-weight:650}
.commercial-table .commercial-table-action{display:inline-flex;margin-top:14px;align-items:center;justify-content:center;min-height:44px;background:#ffd18e;color:#402b0d;border:1px solid #ffe0a9;border-radius:12px;padding:10px 13px;font-size:12px;line-height:1.5;font-weight:650}
.commercial-table .commercial-table-action:hover{background:#ffe0a9}
.commercial-school-name{display:flex;align-items:center;gap:13px}
.commercial-school-name .art{width:44px;height:44px;flex:none}
.commercial-table-note{margin-top:18px}
.commercial-faq{border:1px solid var(--border);border-radius:22px;background:#073b2e;overflow:hidden}
.commercial-faq details+details{border-top:1px solid var(--border)}
.commercial-faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px;font-size:16px;font-weight:600;color:var(--text)}
.commercial-faq summary::-webkit-details-marker{display:none}
.commercial-faq summary:after{content:'+';font-size:23px;font-weight:400;line-height:1;flex:none;color:#ffd18e}
.commercial-faq details[open] summary:after{content:'−'}
.commercial-faq summary:hover{background:var(--surface2)}
.commercial-faq .commercial-answer{border-top:1px solid var(--border);padding:20px 22px;background:#063428}
.commercial-answer p{max-width:950px;font-size:14px;line-height:1.85;color:var(--muted)}
.commercial-sources{margin-top:30px;font-size:12px;color:var(--muted);line-height:1.8}
.commercial-emerald :is(a,button,input,summary):focus-visible{outline:2px solid #ffd18e;outline-offset:4px}
:root[data-theme=light] body.commercial-emerald{--bg:#edf3e7;--surface:#f7faf1;--surface2:#e1ecda;--border:#bdcdb4;--soft-green:#d7e6ce;background:radial-gradient(ellipse 85% 760px at 18% 0%,#b5d0af45,transparent 76%),linear-gradient(180deg,#edf2e2,#f1f5e9 1000px,#e9f1e2 58%,#edf2e3)}
:root[data-theme=light] .commercial-hero{--hero-text:#203d30;--hero-muted:#52685a;--hero-gold:#6c4b1e;display:grid;grid-template-columns:minmax(0,43fr) minmax(0,57fr);gap:24px;background:linear-gradient(135deg,#f7f6e8,#e2ecd8);padding:34px;min-height:600px}
:root[data-theme=light] .commercial-copy{width:100%;max-width:none}
:root[data-theme=light] .commercial-kicker{background:#e2edd5;border-color:#a9bd91}
:root[data-theme=light] .commercial-picture{position:relative;inset:auto;width:100%;height:100%;min-height:460px;border-radius:18px;overflow:hidden}
:root[data-theme=light] .commercial-picture img{object-position:right center}
:root[data-theme=light] .commercial-actions .button-outline{background:#ecf2e1;border-color:#95ae80;color:#294333}
:root[data-theme=light] .commercial-direction{background:linear-gradient(135deg,#f4f8ec,#e2edde)}
:root[data-theme=light] .prep-form,:root[data-theme=light] .prep-result{background:linear-gradient(135deg,#f7f9ef,#e5efda)}
:root[data-theme=light] .prep-subjects button,:root[data-theme=light] .prep-number,:root[data-theme=light] .prep-price input{background:#f6f8ee;border-color:#a3ba95;color:var(--text)}
:root[data-theme=light] .prep-subjects button[aria-pressed=true]{background:#ffd18e;border-color:#cfab6c;color:#402b0d}
:root[data-theme=light] .prep-number button{background:#d9e8cc;color:#244732}
:root[data-theme=light] .prep-number button:hover{background:#c9ddb9}
:root[data-theme=light] .prep-period{background:#e0ead4;border-color:#afbf97}
:root[data-theme=light] .prep-total strong{color:#765126}
:root[data-theme=light] .prep-budget{background:#edf2df;border-color:#b1c295}
:root[data-theme=light] .commercial-table-wrap{background:linear-gradient(140deg,#f8faf0,#e7efdd)}
:root[data-theme=light] .commercial-table caption{background:#edf2e2}
:root[data-theme=light] .commercial-table th{background:#dce8cc;color:#324d38}
:root[data-theme=light] .commercial-faq{background:#f2f6e9}
:root[data-theme=light] .commercial-faq summary:after{color:#765126}
:root[data-theme=light] .commercial-faq .commercial-answer{background:#e8f0df}
:root[data-theme=light] .commercial-emerald :is(a,button,input,summary):focus-visible{outline-color:#526e39}
@media(min-width:1700px){.commercial-hero{min-height:680px}}
@media(max-width:1279px) and (min-width:901px){.commercial-copy{width:100%}.commercial-hero h1{font-size:48px}.commercial-hero{display:grid;grid-template-columns:minmax(0,43fr) minmax(0,57fr);gap:20px;min-height:580px}.commercial-picture{position:relative;inset:auto;width:100%;height:auto;aspect-ratio:1.24;align-self:center;overflow:hidden;border-radius:16px}.commercial-picture img{object-position:right center}.commercial-hero .commercial-lead{font-size:14px;max-width:330px}.commercial-direction-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.commercial-actions .button{font-size:11px}.commercial-table td,.commercial-table th{padding:18px}}
@media(max-width:900px){
 .commercial-emerald .inner-section{width:calc(100% - 40px)}
 .commercial-hero{display:grid;grid-template-columns:1fr;padding:26px;min-height:0;gap:20px}
 .commercial-copy{display:contents}
 .commercial-kicker{order:1;justify-self:start;margin:0}
 .commercial-hero h1{order:2;font-size:50px}
 .commercial-picture{order:3;position:relative;inset:auto;aspect-ratio:1.65;width:100%;height:auto;border-radius:16px;overflow:hidden}
 .commercial-picture img{object-position:right center}
 .commercial-hero .commercial-lead{order:4;margin:0;max-width:none}
 .commercial-actions{order:5;margin:0}
 .commercial-heading{display:block}
 .commercial-heading .section-context{margin-top:18px}
 .commercial-direction-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .prep-form,.prep-result{padding:22px}
 .commercial-table th,.commercial-table td{padding:16px}
 :root[data-theme=light] .commercial-hero{grid-template-columns:1fr;padding:26px;min-height:0;gap:20px}
 :root[data-theme=light] .commercial-copy{display:contents}
 :root[data-theme=light] .commercial-picture{min-height:0;height:auto}
}
@media(max-width:650px){
 .commercial-emerald .inner-section{width:calc(100% - 32px);padding-top:20px}
 .commercial-emerald .breadcrumbs{margin-bottom:18px}
 .commercial-hero,:root[data-theme=light] .commercial-hero{padding:20px 16px;border-radius:18px;gap:18px}
 .commercial-hero h1{font-size:clamp(32px,9.3vw,50px)}
 .commercial-kicker{font-size:10px;padding:8px 10px;gap:7px;border-radius:11px}
 .commercial-kicker .art{width:25px;height:25px}
 .commercial-picture{aspect-ratio:1.24;border-radius:12px}
 .commercial-hero .commercial-lead{font-size:14px;line-height:1.75}
 .commercial-actions{display:grid;grid-template-columns:1fr;gap:9px}
 .commercial-actions .button{min-height:48px;font-size:13px;width:100%}
 .commercial-block{margin-top:42px}
 .commercial-heading{margin-bottom:20px}
 .commercial-heading h2{font-size:28px}
 .commercial-direction-grid{grid-template-columns:1fr;gap:9px}
 .commercial-direction{padding:13px;gap:14px;border-radius:16px;min-height:84px}
 .commercial-direction .art{width:50px;height:50px}
 .commercial-direction strong{font-size:15px}
 .prep-planner{grid-template-columns:1fr;gap:14px}
 .prep-form,.prep-result{padding:20px 16px;border-radius:18px}
 .prep-fields{gap:16px 12px}
 .prep-field label{font-size:12px;min-height:36px;line-height:1.5}
 .prep-number{grid-template-columns:40px minmax(0,1fr) 40px}
 .prep-price label{min-height:0}
 .prep-total strong{font-size:62px}
 .prep-budget strong{font-size:19px}
 .commercial-table{display:block}
 .commercial-table caption{display:block;padding:16px;font-size:12px}
 .commercial-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .commercial-table tbody,.commercial-table tr{display:block}
 .commercial-table tr+tr{border-top:1px solid var(--border)}
 .commercial-table td{display:block;border-top:0;padding:12px 16px;font-size:13px}
 .commercial-table td:first-child{font-size:17px;padding-top:20px}
 .commercial-table td:last-child{padding-bottom:20px}
 .commercial-table td[data-label]:before{content:attr(data-label);display:block;color:var(--text);font-size:11px;font-weight:650;margin-bottom:5px}
 .commercial-table .commercial-table-action{width:100%;min-height:46px}
 .commercial-faq summary{padding:18px 16px;font-size:14px;line-height:1.6}
 .commercial-faq .commercial-answer{padding:17px 16px}
 .commercial-answer p{font-size:13px}
}
@media(max-width:360px){.commercial-emerald .inner-section{width:calc(100% - 24px)}.prep-fields{grid-template-columns:1fr}.prep-field label{min-height:0}.prep-number{grid-template-columns:40px minmax(0,1fr) 40px}}
@media(prefers-reduced-motion:reduce){.commercial-emerald *{transition:none!important;animation:none!important}}

.commercial-teacher{display:block;font-size:13px;line-height:1.6;color:var(--muted);font-weight:400;margin-top:12px}
.commercial-offer-price{display:block;color:var(--text);font-size:19px;line-height:1.5}
.commercial-offer-detail{font-size:13px;line-height:1.7;color:var(--muted);margin-top:12px}
.commercial-writing-paths{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:900px){.commercial-writing-paths{grid-template-columns:1fr}}

.commercial-direction-grid--pair{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:650px){.commercial-direction-grid--pair{grid-template-columns:1fr}}

/* Subject hero readability, release101. Solid backing protects text from every image. */
.commercial-hero.commercial-subject-hero{padding:24px;min-height:620px}
.commercial-subject-hero .commercial-copy{width:48%;max-width:680px;padding:28px 30px;border:1px solid #b6bd8f65;border-radius:20px;background:#07392f;box-shadow:0 18px 54px #001b143d}
.commercial-subject-hero h1{font-size:clamp(38px,3.45vw,52px);line-height:1.08;letter-spacing:-.02em}
.commercial-subject-hero .commercial-lead{font-size:16px;line-height:1.7;max-width:none;margin-top:20px}
.commercial-subject-hero .commercial-kicker{margin-bottom:18px}
.commercial-subject-hero .commercial-actions{margin-top:22px}
.commercial-subject-hero .commercial-actions .button{font-size:14px;padding:13px 17px}
:root[data-theme=light] .commercial-hero.commercial-subject-hero{padding:24px;background:#eff4e6}
:root[data-theme=light] .commercial-subject-hero .commercial-copy{width:100%;max-width:none;background:#f7f9ef;border-color:#acc19a;box-shadow:none}
@media(min-width:901px) and (max-width:1279px){.commercial-subject-hero .commercial-copy{width:100%;max-width:none;padding:23px}.commercial-subject-hero h1{font-size:42px}}
@media(max-width:900px){.commercial-hero.commercial-subject-hero,:root[data-theme=light] .commercial-hero.commercial-subject-hero{padding:24px;min-height:0}.commercial-subject-hero .commercial-copy,:root[data-theme=light] .commercial-subject-hero .commercial-copy{display:contents}.commercial-subject-hero h1{font-size:clamp(32px,5.2vw,46px)}.commercial-subject-hero .commercial-kicker{margin:0}.commercial-subject-hero .commercial-lead{margin:0}.commercial-subject-hero .commercial-actions{margin:0}}
@media(max-width:650px){.commercial-hero.commercial-subject-hero,:root[data-theme=light] .commercial-hero.commercial-subject-hero{padding:20px 16px}.commercial-subject-hero .commercial-lead{font-size:15px}.commercial-subject-hero .commercial-actions .button{font-size:13px}}
