/* ПРЕМЬЕРУМ — помощники для студий. Основано на демо-пакете v1.0, доработано для сайта. */
:root{--navy:#192c43;--ink:#27344a;--muted:#6b778c;--gold:#bc8751;--sand:#e7c8a0;--cream:#fbf8f4;--paper:#fff;--border:#e9e2dc;--soft:#f5ede5;--success:#256f60;--red:#a8414b}
*{box-sizing:border-box}html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}body{margin:0;background:#f8f5f1;color:var(--ink);font:15px/1.45 Inter,system-ui,-apple-system,'Segoe UI',Arial,sans-serif;overflow-x:hidden}
button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit}
:focus-visible{outline:3px solid #c99860;outline-offset:2px}
.wrap{max-width:1340px;margin:0 auto;padding:0 25px}
.sitebar{background:var(--navy);color:#e9d9c6;font-size:12px}.sitebar .wrap{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:40px}.sitebar a{text-decoration:none;font-weight:700;color:#f0d6b0}.sitebar a:hover{text-decoration:underline}.sitebar nav{display:flex;gap:18px;flex-wrap:wrap}
.top{background:linear-gradient(115deg,#fffdf8 0%,#f7eee6 75%,#f0dfd0 100%);border-bottom:1px solid var(--border);position:relative;overflow:hidden}.top:after{content:"";position:absolute;width:600px;height:600px;right:-220px;top:-330px;border-radius:45%;background:radial-gradient(circle,#efd6bd9e,#f7f0e400 67%);pointer-events:none}
.masthead{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:15px 0;position:relative;z-index:1}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:var(--navy)}.brand img{width:64px;height:52px;object-fit:contain}.wordmark{font-family:Georgia,'Times New Roman',serif;font-weight:700;letter-spacing:.7px;font-size:25px;line-height:1;color:var(--navy)}.wordmark b{color:var(--gold)}.subbrand{margin-top:5px;font-size:10px;color:#8f7259;letter-spacing:.06em;font-weight:600}.navhint{font-size:13px;color:var(--muted)}
.hero{padding:26px 0 22px;position:relative;z-index:1}.eyebrow{font-size:11px;letter-spacing:.18em;font-weight:800;color:#975f33;text-transform:uppercase}.hero h1{font:700 clamp(28px,4vw,44px)/1.1 Georgia,serif;max-width:760px;color:var(--navy);margin:12px 0}.hero p{margin:0;max-width:690px;color:#5d697b;font-size:16px}
.chiprow{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.chip{background:#ffffffb8;border:1px solid #eadecf;color:#6f6152;padding:7px 11px;border-radius:99px;font-size:12px}
.tabs{display:flex;gap:10px;position:relative;z-index:1;top:1px;padding-bottom:1px;flex-wrap:wrap}.tab{border:1px solid #e7ded6;background:#ffffffb5;padding:14px 19px;font-weight:700;border-radius:14px 14px 0 0;color:#5e6b7d;display:flex;align-items:center;gap:9px;text-decoration:none}.tab[aria-current=page]{background:#fff;border-bottom-color:#fff;color:#20344e;box-shadow:0 -5px 17px #7d67480a}.tag{font-size:11px;color:#9a6a3a;font-weight:800}
.workspace{display:grid;grid-template-columns:minmax(0,.89fr) minmax(0,1.11fr);gap:24px;padding-top:24px;padding-bottom:40px;align-items:start}
.panel{background:var(--paper);border:1px solid var(--border);border-radius:20px;box-shadow:0 8px 40px #49362109;overflow:hidden;min-width:0}
.panelhead{padding:20px 23px 14px;border-bottom:1px solid #eee9e2}.panel h2{margin:0;font:700 21px/1.2 Georgia,serif;color:var(--navy)}.panelhead p{margin:7px 0 0;color:var(--muted);font-size:12px}
.formbody{padding:21px 23px 23px}.section{margin:0 0 19px;padding:0 0 17px;border:0;border-bottom:1px solid #ede8e3;min-width:0}.section:last-of-type{border:0;margin-bottom:7px;padding-bottom:0}.sectitle{font-size:12px;color:#93683f;font-weight:800;text-transform:uppercase;letter-spacing:.09em;margin-bottom:13px;padding:0}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.field{display:flex;flex-direction:column;gap:5px;min-width:0}.field.full{grid-column:1/-1}
label{font-size:12px;font-weight:700;color:#4f5967}.hint{font-size:11px;color:var(--muted);font-weight:500}
input:not([type=checkbox]),select,textarea{display:block;width:100%;background:#fff;border:1px solid #cfd3d0;border-radius:9px;padding:11px 10px;min-height:44px;outline:none;color:#27344a;transition:border-color .15s}
input:focus,textarea:focus,select:focus{border-color:#bd946d;box-shadow:0 0 0 3px #e6c9a444}textarea{resize:vertical;min-height:74px}
.is-demo{color:#8b7b6b!important;font-style:italic;background:#fffaf2!important}
[aria-invalid=true]{border-color:var(--red)!important;background:#fff7f6!important}.fielderr{color:var(--red);font-size:11px;font-weight:700;min-height:0}
.checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px}.check{display:flex;align-items:flex-start;gap:8px;font-size:13px;color:#4f5c6b;font-weight:500;min-height:28px}.check input{margin-top:2px;width:18px;height:18px;accent-color:#b98958;flex-shrink:0}.check span{line-height:1.3}
.smallnote{font-size:11px;color:var(--muted);margin-top:8px}
.formactions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.btn{border:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;background:var(--navy);color:white;font-size:13px;font-weight:700;padding:11px 13px;min-height:44px;text-decoration:none}.btn:hover{filter:brightness(1.12)}.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.secondary{background:#f4eee7;border:1px solid #e6d7c9;color:#6b4f39}.btn.outline{background:#fff;border:1px solid #cfcac4;color:#45536a}.btn.ghost{background:transparent;border:1px dashed #cdbca9;color:#6e5c48}.btn.danger{background:#fff1ef;border:1px solid #f0cfcc;color:var(--red)}.btn.sm{font-size:12px;padding:8px 11px;min-height:40px}
.right{position:sticky;top:16px}
.previewhead{padding:18px 20px 15px;border-bottom:1px solid var(--border)}.previewhead h2{font-size:20px}.previewhead p{margin:6px 0 0;font-size:12px;color:var(--muted)}
.previewtabs{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.mini{border:1px solid #ddd7d0;border-radius:7px;background:#faf9f7;padding:8px 11px;font-size:12px;font-weight:700;color:#5b6572;min-height:36px}.mini[aria-selected=true]{background:#213650;border-color:#213650;color:#fff}
.exportbar{display:flex;gap:8px;flex-wrap:wrap;padding:13px 20px;background:#faf9f7;border-bottom:1px solid #ede8e2}
.paperwrap{padding:20px;background:#faf7f3}
.demobanner{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#fff4d9;border:1px solid #edd49a;color:#6c5014;border-radius:12px;padding:11px 14px;font-size:13px;margin-bottom:14px}.demobanner b{color:#5a400c}.demobanner .btn{min-height:36px}
.errbanner{background:#fdeeee;border:1px solid #efc2c2;color:#8a2f37;border-radius:12px;padding:11px 14px;font-size:13px;margin-bottom:14px}
.vkhint{background:#eef3fb;border:1px solid #cfdcf0;color:#2b4467;border-radius:10px;padding:10px 13px;font-size:12px;margin:0 20px 0;}
.vkhint.inline{margin:12px 0 0}
.doc{position:relative;background:white;border:1px solid #ece5dc;box-shadow:0 6px 20px #422e160d;min-height:540px;max-width:790px;margin:0 auto;padding:27px 28px 33px;line-height:1.48;overflow-wrap:anywhere}
.doc.demo:before{content:"ПРИМЕР";position:absolute;right:18px;top:78px;font:800 12px Inter,Arial,sans-serif;letter-spacing:.2em;color:#a46d1c;border:2px solid #e2b866;border-radius:6px;padding:4px 9px;transform:rotate(4deg);background:#fff8e8}
.docbar{display:flex;align-items:center;gap:8px;border-bottom:2px solid #d5ac73;padding-bottom:12px;margin-bottom:23px}.docbar img{width:45px;height:38px;object-fit:contain}.docbar .mark{font:700 22px Georgia,serif;color:var(--navy)}.docbar .mark span{color:#b48249}.docbar .rightbrand{margin-left:auto;color:#8c6f52;font-size:9px;letter-spacing:1px;text-align:right}
.doc h3{font:700 25px/1.15 Georgia,serif;color:var(--navy);margin:0 0 6px}.doc .lead{color:#8d6343;font-size:13px;margin-bottom:21px}.doc h4{color:var(--navy);font-size:13px;text-transform:uppercase;letter-spacing:.07em;margin:22px 0 10px}.doc p{margin:6px 0}
.facts{display:grid;grid-template-columns:1fr 1fr;gap:9px 21px;padding:14px;background:#fbf7f1;border-radius:9px}.fact{font-size:13px;overflow-wrap:anywhere}.fact small{display:block;text-transform:uppercase;color:#7f7b75;letter-spacing:.05em;font-size:10px;margin-bottom:2px}.fact b.tbd{color:#a0602a;font-style:italic;font-weight:600}
.doc .tick{font-size:12px;margin:9px 0;color:#384254;padding-left:22px;text-indent:-22px}.doc .tick:before{content:'☐';margin-right:9px;color:#b58152}
.doc .footer{border-top:1px solid #e9e2da;margin-top:32px;padding-top:11px;color:#8f857a;font-size:11px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.doc table{border-collapse:collapse;width:100%;margin-top:10px;font-size:12px;table-layout:auto}.doc th{background:#f5ede5;text-align:left;color:var(--navy)}.doc th,.doc td{border:1px solid #e7ddd2;padding:7px 8px;overflow-wrap:anywhere;vertical-align:top}.doc td.nowrap,.doc th.nowrap{white-space:nowrap}.doc tr.bad td{background:#fff3f2;color:var(--red)}.doc tr.aux td{color:#7a8492;background:#fcfaf7}
.doc .total{margin-top:17px;padding:13px;border-radius:8px;background:#f6f0e9;font-size:13px}.doc .disclaimer{font-size:11px;color:#7b7268;margin-top:12px}
.textpreview{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;background:white;padding:20px;border-radius:12px;min-height:260px;border:1px solid #e9e2da}
.metricrow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}.metric{background:#f4eee8;border:1px solid #ebdfd3;border-radius:12px;padding:12px;text-align:center;min-width:0}.metric strong{display:block;font-size:21px;color:#1e344f}.metric small{color:#6e7682;font-size:10px}
.warning{color:#a0482c!important}.okay{color:#21695b!important}.muted{color:#7b8490!important}
.rows{display:flex;flex-direction:column;gap:9px}.numberrow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px;gap:7px;background:#faf9f8;border:1px solid #eae4de;border-radius:12px;padding:9px}.numberrow.bad{border-color:#e7b5b5;background:#fff8f7}.numberrow input,.numberrow select{font-size:13px;min-height:40px;padding:8px 7px}.numlabel{grid-column:1/-1;font-weight:800;font-size:11px;color:#93683f;display:flex;justify-content:space-between;gap:8px}.numberrow .fielderr{grid-column:1/-1}.numberrow .titled{grid-column:1}.numberrow .person{grid-column:2}.numberrow .dur{grid-column:1}.numberrow .tech{grid-column:2}.numberrow .remove{grid-column:3;grid-row:2/4;border:1px solid #e2d8d0;color:#8f544d;background:white;border-radius:7px;min-height:40px;font-size:18px}
.helperfine{font-size:12px;color:#5f6b7b;padding:12px 22px 17px;border-top:1px solid #eee7df}
.hidden{display:none!important}.notice{font-size:12px;color:#76685b;background:#fbf5eb;border-radius:8px;padding:9px 12px;margin-top:16px}
.toast{position:fixed;right:16px;bottom:16px;left:auto;background:#203d47;color:#fff;padding:10px 14px;border-radius:9px;z-index:999;font-size:13px;box-shadow:0 8px 25px #182c4355;opacity:0;transform:translateY(12px);transition:.2s;pointer-events:none;max-width:calc(100% - 32px)}.toast.show{opacity:1;transform:none}
.sitefoot{border-top:1px solid var(--border);background:#fffdf9;padding:22px 0 30px;font-size:12px;color:#6c7684}.sitefoot .wrap{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}.sitefoot a{color:#9a6a3a;font-weight:700}
@media(max-width:990px){.workspace{grid-template-columns:1fr}.right{position:static}.navhint{display:none}}
@media(max-width:650px){.wrap{padding:0 13px}.hero{padding:20px 0 17px}.hero h1{font-size:28px}.hero p{font-size:14px}.brand img{width:50px;height:44px}.wordmark{font-size:21px}.tabs{gap:5px}.tab{padding:12px 10px;font-size:12px;flex:1;justify-content:center}.tab .tag{display:none}.workspace{padding-top:13px;gap:13px}.panelhead,.formbody{padding:16px}.fields,.checks{grid-template-columns:1fr}.field.full{grid-column:auto}.paperwrap{padding:9px}.doc{padding:18px 14px;min-height:0}.doc h3{font-size:21px}.doc.demo:before{top:60px;right:10px;font-size:10px}.facts{grid-template-columns:1fr;gap:7px}.docbar .mark{font-size:18px}.docbar .rightbrand{font-size:8px}.metricrow{gap:6px}.metric{padding:10px 4px}.metric strong{font-size:16px}
.numberrow{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px}.numberrow .titled,.numberrow .person{grid-column:1/3}.numberrow .dur{grid-column:1/2}.numberrow .tech{grid-column:2/3}.numberrow .remove{grid-column:3;grid-row:2/4}
.previewhead,.exportbar{padding:14px}.exportbar .btn,.formactions .btn{flex:1 1 140px}.chip{font-size:11px}.doc th,.doc td{padding:5px;font-size:10px}.vkhint{margin:0 14px}.sitebar .hide-sm{display:none}}
@media(max-width:360px){.wordmark{font-size:18px}.subbrand{font-size:8px}.hero h1{font-size:25px}.metric strong{font-size:14px}}
/* Печать A4: только активный документ, без интерфейса; длинные таблицы переносятся построчно */
@media print{
  @page{size:A4;margin:14mm 13mm}
  body{background:#fff!important;color:#111}
  .sitebar,.top,.toast,.sitefoot,.workspace>.panel:not(.right),.previewhead,.exportbar,.helperfine,.metricrow,.demobanner,.errbanner,.vkhint,.notice,.noprint{display:none!important}
  .workspace{display:block!important;padding:0!important;max-width:none!important}.wrap{padding:0!important;max-width:none!important}
  .panel{border:0!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important;position:static!important}
  .paperwrap{padding:0!important;background:none!important}
  .doc{border:0!important;box-shadow:none!important;max-width:none!important;padding:0!important;min-height:0!important;font-size:11pt}
  .doc.demo:before{top:58px;right:0}
  .doc table{font-size:9.5pt}.doc thead{display:table-header-group}.doc tr,.doc .tick,.fact{break-inside:avoid;page-break-inside:avoid}
  .doc h3,.doc h4{break-after:avoid;page-break-after:avoid}.doc .total,.doc .footer{break-inside:avoid}
  .facts{background:#f7f2ec!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.doc th{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  #contestText{display:none!important}
}

/* Подписка руководителей студий */
.subband{margin:30px 0 34px;display:flex;justify-content:space-between;align-items:center;gap:22px;flex-wrap:wrap;background:#fff;border:1px solid #ecdcca;border-left:4px solid #bc8751;border-radius:18px;padding:24px 28px;box-shadow:0 8px 30px #49362108}
.subband .sb-text{flex:1 1 420px;min-width:0}.subband .sb-k{display:block;font-size:11px;letter-spacing:.16em;font-weight:800;color:#a8743f;text-transform:uppercase}
.subband h2{margin:6px 0 6px;font:700 24px/1.2 Georgia,serif;color:#192c43}.subband p{margin:0;color:#5d697b;font-size:14px;max-width:680px;line-height:1.5}
.subband .sb-btn{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;text-decoration:none;font-weight:750;font-size:14px;color:#fff;background:linear-gradient(120deg,#dfaf70,#c78b49);padding:13px 22px;border-radius:999px;box-shadow:0 6px 18px #c78b4933}
.subband .sb-btn:hover{filter:brightness(1.05)}
@media(max-width:620px){.subband{padding:20px 18px}.subband .sb-btn{width:100%;justify-content:center}}
