/*
 * balance.uz — внутренние страницы (тема 0.4.0). Подключается на всех страницах, кроме главной, после site.css.
 * Перенесено из макетов design/variants/pages (build.py и pages_more.py) без изменений; ниже — добавления темы.
 */
/* ── внутренние страницы ── */
.ph{position:relative;overflow:hidden;padding:44px 0 56px;
  background:linear-gradient(180deg,#f6f8fb 0%,rgba(246,248,251,0) 22%),radial-gradient(55% 90% at 100% 20%,rgba(9,35,100,.16),rgba(9,35,100,0) 70%),radial-gradient(50% 80% at 0% 70%,rgba(60,105,200,.10),rgba(60,105,200,0) 70%),linear-gradient(180deg,#eef3fa 0%,rgba(228,236,247,.9) 55%,rgba(244,247,251,0) 100%)}
.ph .wrap{max-width:1560px;padding-left:40px;padding-right:40px}
.crumbs{display:flex;gap:8px;flex-wrap:wrap;font-size:14px;color:var(--muted)}
.crumbs a:hover{color:var(--btn)}.crumbs span::before{content:"/";margin-right:8px;opacity:.5}
.ph h1{margin-top:22px;font-size:54px;line-height:1.06;letter-spacing:-.02em;font-weight:800;width:fit-content;max-width:900px;padding-bottom:6px;
  background-image:linear-gradient(125deg,#0aa043 0%,#07873a 22%,#05754C 42%,#0c3a7a 66%,#092364 86%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.ph .lede{margin-top:18px;font-size:20px;line-height:1.5;color:var(--ink);max-width:760px;font-weight:500}
.ph .act{margin-top:28px;display:flex;gap:14px;flex-wrap:wrap}
.pg{display:grid;gap:24px}.pg3{grid-template-columns:repeat(3,minmax(0,1fr))}.pg2{grid-template-columns:repeat(2,minmax(0,1fr))}.pg4{grid-template-columns:repeat(4,minmax(0,1fr))}
.gc{display:flex;flex-direction:column;border-radius:22px;padding:28px 28px 26px;color:inherit;
  background:linear-gradient(180deg,rgba(255,255,255,.78),rgba(255,255,255,.58));border:1px solid rgba(255,255,255,.9);box-shadow:inset 0 1px 0 #fff,0 20px 44px -30px rgba(9,35,100,.4);transition:transform .25s,box-shadow .25s}
a.gc:hover{transform:translateY(-3px);box-shadow:inset 0 1px 0 #fff,0 28px 50px -28px rgba(9,35,100,.5)}
.gc h3{font-size:20px;line-height:1.25;color:var(--ink)}.gc p{margin-top:10px;font-size:15.5px;line-height:1.5;color:var(--text)}
.gc .go{margin-top:auto;padding-top:18px;font-size:14px;font-weight:600;color:var(--btn)}
.gc .ic2{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;margin-bottom:18px;background:linear-gradient(140deg,#092364,#0c3a7a);color:#fff;box-shadow:0 10px 20px -12px rgba(9,35,100,.7)}
.gc .ic2 svg{width:26px;height:26px}
.tagc{display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:999px;font-size:12.5px;font-weight:600;background:rgba(7,135,58,.1);color:var(--btn-h);width:fit-content}
.prose{max-width:760px;font-size:18px;line-height:1.65;color:var(--text)}.prose p+p{margin-top:16px}
.cert{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:40px}
.cert a{display:block;border-radius:18px;padding:12px;background:linear-gradient(180deg,rgba(255,255,255,.7),rgba(255,255,255,.45));border:1px solid rgba(255,255,255,.95);box-shadow:0 20px 44px -30px rgba(9,35,100,.4);transition:transform .25s}
.cert a:hover{transform:translateY(-3px)}.cert img{width:100%;aspect-ratio:4/3;object-fit:cover;object-position:top;border-radius:10px;display:block}
.chipsb{display:flex;gap:8px;flex-wrap:wrap;margin-top:28px}
.chipsb span{height:40px;padding:0 16px;border-radius:999px;display:inline-flex;align-items:center;font-size:14.5px;font-weight:500;background:rgba(255,255,255,.6);border:1px solid rgba(255,255,255,.95);color:var(--ink)}
.chipsb span.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.post .th{aspect-ratio:16/9;border-radius:14px;margin:-12px -12px 20px;background:linear-gradient(140deg,#1b4b4b,#2a9553);position:relative;overflow:hidden}
.post .th::after{content:"";position:absolute;width:70%;aspect-ratio:1;right:-20%;top:-45%;border-radius:50%;background:radial-gradient(closest-side,rgba(27,75,75,0) 30%,rgba(42,149,83,.9) 90%,#2fa35a 100%)}
.post .meta{display:flex;gap:10px;align-items:center;font-size:13px;color:var(--muted);margin-bottom:12px}
.note{border-radius:16px;padding:16px 20px;font-size:14.5px;line-height:1.5;background:rgba(255,210,0,.16);border:1px solid rgba(255,210,0,.5);color:#5b4a00;max-width:900px}
.art{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:56px;align-items:start}
.art .side{position:sticky;top:112px;display:grid;gap:20px}
.art .body h2{font-size:30px;line-height:1.2;margin:40px 0 14px;color:var(--navy)}.art .body p{font-size:18px;line-height:1.7;margin-top:14px}
.art .body ul{margin:14px 0 0;padding-left:22px;font-size:18px;line-height:1.7}.art .body blockquote{margin:26px 0;padding:18px 24px;border-left:4px solid var(--btn);background:rgba(255,255,255,.6);border-radius:0 16px 16px 0;font-size:19px;line-height:1.55;color:var(--ink)}
.cc{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:start}
.cc label{display:block;font-size:14px;font-weight:600;margin:18px 0 8px;color:var(--ink)}
.cc input{width:100%;height:54px;border-radius:12px;border:1.5px solid var(--line);padding:0 16px;font:inherit;font-size:16px;background:rgba(255,255,255,.8)}
.cc input:focus{outline:0;border-color:var(--btn)}
.cc .res{border-radius:22px;padding:30px 28px;color:#fff;background:#1b4b4b;position:relative;overflow:hidden;isolation:isolate}
.cc .res::before{content:"";position:absolute;z-index:-1;width:420px;height:420px;right:-230px;bottom:-250px;border-radius:50%;background:radial-gradient(closest-side,rgba(27,75,75,0) 30%,rgba(42,149,83,.9) 90%,#2fa35a 100%)}
.cc .res b{display:block;font-size:40px;line-height:1.1;margin-top:14px;font-weight:700}.cc .res small{display:block;margin-top:10px;opacity:.8;font-size:14px;line-height:1.5}
.frame{border-radius:22px;overflow:hidden;border:1px solid rgba(255,255,255,.9);box-shadow:0 20px 44px -30px rgba(9,35,100,.4);background:#fff}
.frame iframe{display:block;width:100%;height:900px;border:0}
.map iframe{display:block;width:100%;height:420px;border:0;border-radius:22px}
.b24-widget-button-wrapper{z-index:55 !important}
@media (max-width:1000px){.pg3,.pg4,.cert{grid-template-columns:repeat(2,minmax(0,1fr))}.art,.cc{grid-template-columns:minmax(0,1fr)}.art .side{position:static}.ph h1{font-size:42px}}
@media (max-width:640px){.ph{padding:26px 0 34px}.ph .wrap{padding-left:16px;padding-right:16px}.ph h1{font-size:32px}.ph .lede{font-size:17px}.pg2,.pg3,.pg4{grid-template-columns:minmax(0,1fr)}.cert{gap:12px}
  .frame iframe{height:760px}}

.btn-o{background:rgba(255,255,255,.7);color:var(--ink);border:1.5px solid var(--line)}.btn-o:hover{border-color:var(--btn);color:var(--btn)}
.pfrom{font-weight:700;color:var(--navy) !important;font-size:17px !important}
.prl{list-style:none;margin:0;padding:0;display:grid;gap:10px;max-width:980px}
.prl li{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 22px;border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.8),rgba(255,255,255,.6));border:1px solid rgba(255,255,255,.92);box-shadow:inset 0 1px 0 #fff,0 14px 30px -26px rgba(9,35,100,.4)}
.prl .nm{font-size:16px;font-weight:600;color:var(--ink);line-height:1.35}.prl em{font-style:normal;font-size:12.5px;font-weight:500;margin-left:10px;padding:4px 10px;border-radius:999px;background:rgba(9,35,100,.07);color:var(--muted);white-space:nowrap}
.prl b{font-size:16px;font-weight:700;color:var(--navy);white-space:nowrap}
.prn{margin-top:14px;font-size:14px;line-height:1.5;color:var(--muted);max-width:900px}
.vk{border-radius:18px;margin-bottom:12px;background:linear-gradient(180deg,rgba(255,255,255,.8),rgba(255,255,255,.6));border:1px solid rgba(255,255,255,.92);box-shadow:inset 0 1px 0 #fff,0 14px 30px -26px rgba(9,35,100,.4)}
.vk summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 26px;font-size:19px;font-weight:700;color:var(--ink)}
.vk summary::-webkit-details-marker{display:none}
.vk .pm{width:32px;height:32px;border-radius:50%;background:rgba(7,135,58,.12);position:relative;flex:none}
.vk .pm::before,.vk .pm::after{content:"";position:absolute;left:50%;top:50%;width:12px;height:2px;margin:-1px 0 0 -6px;background:var(--btn);border-radius:2px;transition:transform .25s}
.vk .pm::after{transform:rotate(90deg)}.vk[open] .pm::after{transform:none}
.vb{padding:0 26px 26px;font-size:15.5px;line-height:1.6;color:var(--text)}.vb p{margin-top:14px;color:var(--ink)}.vb ul{margin:8px 0 0;padding-left:20px}.vb li{margin-top:4px}
.anketa{padding:32px}.ag{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
.af{display:block;margin-top:16px}.af span{display:block;font-size:14px;font-weight:600;margin-bottom:8px;color:var(--ink)}
.af input,.af select,.af textarea{width:100%;min-height:52px;border-radius:12px;border:1.5px solid var(--line);padding:12px 16px;font:inherit;font-size:16px;background:rgba(255,255,255,.85);color:var(--ink)}
.af input:focus,.af select:focus,.af textarea:focus{outline:0;border-color:var(--btn)}
.ac{display:flex;gap:10px;align-items:flex-start;margin-top:16px;font-size:14.5px;line-height:1.45;color:var(--text)}.ac input{margin-top:3px;width:18px;height:18px;accent-color:#07873a}
.fr-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.55fr);gap:24px;align-items:stretch}
.fr-cond{padding:36px 36px 34px}
.fr-num{margin-top:22px;font-size:60px;line-height:1;font-weight:800;letter-spacing:-.03em;width:fit-content;background-image:linear-gradient(125deg,#0aa043 0%,#05754C 45%,#092364 95%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;padding-bottom:4px}
.fr-cap{margin-top:6px !important;font-size:16px !important;color:var(--muted) !important}
.fr-line{margin:26px 0 30px;padding-top:22px;border-top:1px solid var(--line);display:flex;align-items:baseline;gap:14px}
.fr-line b{font-size:30px;font-weight:800;color:var(--navy);white-space:nowrap}.fr-line span{font-size:15.5px;line-height:1.45;color:var(--text)}
.fr-cond .btn{margin-top:auto;width:100%}
.fr-aw{position:relative;flex-direction:row;align-items:center;gap:24px;padding:36px 30px 36px 36px;overflow:visible}
.fr-aw .tx{flex:1;min-width:0}.fr-aw h3{margin-top:16px;font-size:30px;line-height:1.15;color:var(--navy)}.fr-aw p{font-size:15.5px;line-height:1.6}
.fr-aw .aws{position:relative;flex:none;width:250px;align-self:stretch;display:flex;align-items:flex-end;justify-content:center}
.fr-aw .aws::before{content:"";position:absolute;width:250px;height:250px;left:0;bottom:8%;border-radius:50%;background:radial-gradient(circle at 35% 30%,#19b45a 0%,#07873a 55%,#05754C 100%);box-shadow:0 30px 50px -30px rgba(5,117,76,.7)}
.fr-aw .aws img{position:relative;height:calc(100% + 40px);max-height:400px;width:auto;max-width:none;margin-bottom:-8px}
@media (max-width:1100px){.fr-row{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){.fr-num{font-size:44px}.fr-aw{flex-direction:column;padding:26px 22px 0;align-items:flex-start}.fr-aw .aws{width:100%;height:300px}.fr-aw .aws::before{left:calc(50% - 110px);width:220px;height:220px;bottom:10%}.fr-aw .aws img{height:300px;margin-bottom:0}}
@media (max-width:640px){.prl li{flex-direction:column;align-items:flex-start;gap:8px;padding:14px 16px}.ag{grid-template-columns:1fr}.anketa{padding:20px}.vk summary{padding:16px 18px;font-size:17px}.vb{padding:0 18px 20px}}

/* ── добавления темы: обычная страница, блог, формы ── */
.prose a,.art .body a{color:var(--btn);text-decoration:underline;text-underline-offset:3px}
.prose h2{font-size:28px;line-height:1.2;margin:32px 0 12px;color:var(--navy)}.prose h3{font-size:21px;margin:26px 0 10px;color:var(--ink)}
.prose ul,.prose ol{margin:14px 0 0;padding-left:22px}.prose img,.art .body img{max-width:100%;height:auto;border-radius:14px}
.art .body blockquote p{font-size:inherit;line-height:inherit;margin:0}.art .body ol{margin:14px 0 0;padding-left:22px;font-size:18px;line-height:1.7}
.art .body h3{font-size:23px;line-height:1.25;margin:30px 0 10px;color:var(--ink)}.art .body>.post+p{margin-top:0}
a.chip-l{height:40px;padding:0 16px;border-radius:999px;display:inline-flex;align-items:center;font-size:14.5px;font-weight:500;background:rgba(255,255,255,.6);border:1px solid rgba(255,255,255,.95);color:var(--ink);transition:border-color .2s,color .2s}
a.chip-l:hover{border-color:var(--btn);color:var(--btn)}a.chip-l.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.post .th img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.pgn{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:40px}
.pgn .page-numbers{min-width:44px;height:44px;padding:0 14px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:15px;font-weight:600;background:rgba(255,255,255,.7);border:1px solid rgba(255,255,255,.95);color:var(--ink)}
.pgn .page-numbers.current{background:var(--navy);color:#fff;border-color:var(--navy)}.pgn a.page-numbers:hover{border-color:var(--btn);color:var(--btn)}
.empty{max-width:760px}.empty h2{font-size:24px;line-height:1.25;color:var(--ink)}.empty p{margin-top:10px;font-size:16.5px;line-height:1.55;color:var(--text)}
.ph .lede a{color:var(--btn);font-weight:600;white-space:nowrap}
.anketa .ok{margin-top:14px;color:var(--btn);font-weight:600;min-height:1.4em}.anketa .ok.err,.form .ok.err{color:#c62828}
.form .ok.err{color:#ffd9d2}
.anketa .hp{position:absolute !important;left:-9999px;width:1px;height:1px;overflow:hidden}
.af small{display:block;margin-top:6px;font-size:13px;color:var(--muted)}
.prn a{color:var(--btn);font-weight:600}
.gc .cc-h,.gc .post-t{font-size:20px;line-height:1.25;color:var(--ink)}
.cc-note{margin-top:18px}.gc .cc-note p{margin-top:0;font-size:14px;color:var(--muted)}.gc .cc-note p+p{margin-top:8px}
.post .meta a.tagc:hover{background:rgba(7,135,58,.18)}
