@font-face{font-family:Onest;src:url('/assets/fonts/Onest.ttf') format('truetype');font-weight:100 900;font-display:swap}@font-face{font-family:Prata;src:url('/assets/fonts/Prata.ttf') format('truetype');font-weight:400;font-display:swap}
:root{font-family:Onest,-apple-system,sans-serif;--bg:#f3f5f8;--surface:#fff;--tint:#ecf0f8;--line:#e0e5ec;--ink:#18283f;--muted:#778395;--blue:#285bd4;--glass:#ffffffd4;--ease:cubic-bezier(.19,1,.22,1)}:root[data-theme=dark]{--bg:#121c2c;--surface:#1b283c;--tint:#24344d;--line:#344158;--ink:#e8eef6;--muted:#a1afc3;--blue:#95b8ff;--glass:#1b283cd4}body{background:var(--bg);font-weight:400}button{font-weight:500}h1,h2,h3{font-weight:550}h1{letter-spacing:-1.4px}.brand small{font-size:8px;letter-spacing:1.25px}.brand strong{font-weight:650}#sidebar{box-shadow:none;background:color-mix(in srgb,var(--surface) 70%,transparent);border-color:var(--line)}#sidebar .brand{gap:9px}.sidebar-label{font-size:9px}.heading h1{font-weight:500}.button{font-size:13px;font-weight:550;box-shadow:inset 0 1px 1px #ffffff40,0 7px 18px #245be712;background:linear-gradient(160deg,#4677e9,#2454c6);border-color:#2e60d1}.button.secondary{box-shadow:inset 0 1px 0 #ffffff30}.button.ghost{background:none;box-shadow:none}h2{letter-spacing:-.7px}.hero{background:var(--surface);border-radius:30px;padding:52px;position:relative;overflow:hidden;grid-template-columns:1.1fr 1fr;min-height:520px}.hero h1{font:500 clamp(42px,4.7vw,70px)/1.07 Onest,sans-serif;letter-spacing:-3px;max-width:640px}.hero h1 em{font:400 1em/1.2 Prata,Georgia,serif;color:var(--blue);letter-spacing:-2.5px}.hero p{font-size:14px;line-height:1.85;max-width:430px;margin:28px 0}.hero-note{font-size:11px}.hero .eyebrow{font-size:9px}.hero:after{display:none}.hero-preview{perspective:1000px}.mini-browser{background:var(--surface);box-shadow:0 36px 50px #28375516;transform:rotate(-3deg) rotateY(-8deg);border-radius:23px}.mini-browser-body h3{font-family:Prata,Georgia,serif;font-size:26px;font-weight:400;line-height:1.35}.feature-grid{margin:36px 0 56px}.feature{border-top:1px solid var(--line);padding:28px 12px}.feature h3{font-size:17px}.feature p{font-size:13px;line-height:1.8}.feature>svg{color:var(--blue)}.plan-card{border-radius:24px;box-shadow:none}.plan-card.pro{box-shadow:0 16px 50px #285bd412}.plan-card h3{font-size:12px;letter-spacing:2px}.plan-price{font-weight:450;letter-spacing:-1.6px}.plan-price small{letter-spacing:0}.section-head h2{font-size:27px;font-weight:500}.owner-identity strong{font-weight:500}.owner-plan{font-family:Onest,sans-serif}.account-welcome h2{font:400 29px/1.4 Prata,Georgia,serif;letter-spacing:-1px}.owner-face:after{mix-blend-mode:normal;opacity:.75}.owner-engraving{font-family:Prata,Georgia,serif}.setting-copy strong{font-weight:500}.appearance-panel{box-shadow:none}.settings-title h2{font-weight:500}.owner-card-toolbar{font-size:12px}.owner-contacts strong{font-size:14px}.settings-group{box-shadow:inset 0 1px 0 var(--glass-edge)}.theme-mini{border-radius:12px}.theme-name{font-weight:500}.version-signature{font-size:12px}.footer{font-size:11px}.footer-links button{font-size:10px}.field{display:grid;gap:9px;margin:0 0 23px;min-width:0}.field>span{font-size:12px;font-weight:500;line-height:1.5}.field input,.field textarea,.field select{border-radius:13px;background:var(--bg);border:1px solid var(--line);padding:13px 15px;min-height:48px;box-shadow:inset 0 1px 2px #12285103;line-height:1.5}.field input:focus,.field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px #3b6ee811;outline:none}.field textarea{resize:vertical}.grid .field{margin-bottom:23px}.notice{font-size:12px;border-radius:14px}.badge{font-weight:500}.row{min-width:0}.editor-title{margin-bottom:28px}.editor-step{font-size:10px;text-transform:uppercase;letter-spacing:1.3px;color:var(--muted)}.editor-title h2{font-size:25px;line-height:1.22;font-weight:500;margin:12px 0}.editor-title p{color:var(--muted);font-size:12px;line-height:1.8}.studio-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0 0 24px}.studio-heading h1{font-size:32px;font-weight:500;letter-spacing:-1px;margin:15px 0 10px;overflow-wrap:anywhere}.studio-heading p{font-size:11px;color:var(--muted)}.studio-back{display:flex;align-items:center;gap:5px;color:var(--muted);padding:0;font-size:11px;min-height:28px}.studio-back svg{rotate:180deg;width:13px}.studio-plan{font-size:11px;letter-spacing:2px;border:1px solid var(--line);border-radius:30px;padding:9px 13px}.studio-command{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:26px;background:var(--bg);position:sticky;top:0;z-index:22}.studio-command-title{display:flex;align-items:center;gap:9px;font-size:12px;white-space:nowrap}.live-dot{display:inline-block;width:6px;height:6px;background:#4b9884;border-radius:50%;box-shadow:0 0 0 4px #4b988410;flex-shrink:0}.studio-actions{display:flex;gap:9px}.studio-actions .button{min-height:41px;padding:10px 15px;font-size:11px;border-radius:13px}.studio-actions svg{width:16px;height:16px}.studio-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:35px;align-items:start}.studio-editor{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:25px;overflow:clip}.builder-tabs{display:flex;overflow-x:auto;scrollbar-width:none;gap:7px;border-bottom:1px solid var(--line);padding:17px 17px;margin:0;overscroll-behavior-x:contain;scroll-padding-inline:17px}.builder-tabs::-webkit-scrollbar{display:none}.builder-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px;padding:10px 13px;white-space:nowrap;border-radius:11px;min-height:41px;flex:none}.builder-tabs button svg{width:15px;height:15px}.builder-tabs button.active{background:var(--tint);color:var(--blue)}.editor-caption{display:flex;justify-content:space-between;gap:12px;font-size:10px;padding:24px 27px 0;color:var(--muted)}.editor-caption strong{font-weight:500;color:var(--ink)}.builder-panel{padding:25px 27px 30px;background:none;border:0;border-radius:0;box-shadow:none;min-width:0}.builder-panel h2{font-size:24px;line-height:1.3;margin-bottom:12px;font-weight:500}.builder-panel form>p.muted{font-size:12px;line-height:1.8;margin-bottom:29px}.builder-panel h3{font-size:15px;font-weight:500}.builder-panel .grid{gap:14px}.builder-panel .grid>*{min-width:0}.builder-panel .editor-row{border:1px solid var(--line);background:var(--bg);border-radius:18px;padding:20px;margin:24px 0}.editor-row .row{margin-bottom:20px}.editor-row .field:last-child{margin:0}.section-option{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:23px 0;border-bottom:1px solid var(--line)}.section-option p{margin:6px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}.section-option strong{font-size:14px;font-weight:500}.section-option .switch{flex-shrink:0}.editor-links{display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid var(--line);padding:14px 19px}.editor-links .button{font-size:10px}.layout-choice{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:26px 0 35px}.layout-choice .layout-option{min-width:0;text-align:left;border-radius:13px;border:1px solid var(--line);background:var(--bg);padding:9px;transition:border-color .35s,box-shadow .5s,transform .5s var(--ease)}.layout-option.active{border-color:var(--blue);box-shadow:0 0 0 3px #396ee711}.layout-option strong{display:block;font-size:10px;margin:12px 0 5px;letter-spacing:-.3px;font-weight:550}.layout-option small{font-size:9px;line-height:1.5;display:block}.layout-sample{position:relative;display:block;height:83px;border-radius:7px;background:#fff;overflow:hidden;padding:9px;box-shadow:0 1px 3px #15294b0c}.layout-sample i{position:absolute;width:32%;height:50px;right:7px;bottom:0;background:#c5d3e6;border-radius:35px 35px 0 0;display:block}.layout-sample b{font:22px Prata,serif;color:#243951;position:absolute;left:8px;top:23px;font-weight:400}.layout-sample em{position:absolute;left:8px;bottom:10px;width:30%;height:6px;border-radius:4px;background:#234c45}.layout-sample.studio{background:#eaf0ed}.layout-sample.studio b{font:600 20px Onest,sans-serif}.layout-sample.academy{background:#253e50}.layout-sample.academy b{color:white}.layout-sample.academy em{background:#c6dbd7}.editor-section{padding-top:27px;border-top:1px solid var(--line);margin-top:27px}.field-title{margin-bottom:18px}.field-title h3{font-size:15px;margin-bottom:6px}.field-title small{font-size:11px;line-height:1.6;display:block}.color-control{display:flex;align-items:center;gap:14px;background:var(--bg);padding:10px 13px;border:1px solid var(--line);border-radius:15px}.color-swatch{width:39px;height:39px;flex-shrink:0;border-radius:11px;background:var(--chosen);position:relative;border:1px solid #0001}.color-swatch input[type=color]{position:absolute;inset:0;width:100%;height:100%;opacity:0;padding:0;cursor:pointer}.hex-field{display:grid;gap:2px;min-width:0;flex:1}.hex-field span{font-size:8px;letter-spacing:1px;color:var(--muted)}.hex-field input{width:100%;border:0;background:none;padding:0;min-height:20px;font:500 14px Onest,sans-serif;color:var(--ink);outline:none}.color-check{color:var(--muted)}.color-presets{display:flex;gap:12px;margin:17px 0 5px}.color-presets button{width:27px;height:27px;border-radius:50%;background:var(--color);border:3px solid var(--surface);box-shadow:0 0 0 1px var(--line)}.brand-uploads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.asset-card{min-width:0;background:var(--bg);border:1px solid var(--line);border-radius:18px;padding:15px}.asset-title{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:14px;min-height:30px}.asset-title strong{font-size:11px;font-weight:500}.asset-title .icon-button{width:26px;height:26px;border:0;background:var(--surface)}.asset-title svg{width:13px}.asset-upload{display:block;position:relative;cursor:pointer}.asset-art{display:grid;place-items:center;height:125px;overflow:hidden;background:var(--surface);border-radius:10px}.asset-art.cutout{background:radial-gradient(ellipse at 50% 100%,#d5deec,transparent),var(--surface)}.asset-art img{width:100%;height:100%;max-height:125px;object-fit:contain;object-position:center bottom}.asset-art>svg{width:28px;height:28px;stroke-width:1.2;color:var(--muted)}.asset-choose{display:flex;gap:4px;align-items:center;justify-content:center;font-size:10px;font-weight:500;min-height:35px;margin-top:12px;background:var(--surface);border:1px solid var(--line);border-radius:9px}.asset-choose svg{width:13px;height:13px}.asset-upload input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.asset-card>small{display:block;font-size:9px;line-height:1.6;margin-top:11px}.editor-hint{font-size:11px;line-height:1.8;color:var(--muted);margin:20px 0 0}.splash-fields{margin-top:29px}.document-row{border-bottom:1px solid var(--line);padding:25px 0;grid-template-columns:65px minmax(0,1fr) 34px;gap:14px}.document-row .field{margin-bottom:15px}.document-row .icon-button{width:30px;height:30px}.document-row .doc-thumb{height:80px;width:65px;object-fit:contain;background:var(--bg);border-radius:7px}.studio-grid .preview-column{display:block;position:sticky;top:85px;min-width:0;padding:0}.preview-tools{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:7px 0 20px;min-height:36px;font-size:10px}.preview-tools>span{display:flex;align-items:center;gap:8px;white-space:nowrap}.preview-tools>span i{width:5px;height:5px;background:#4b9884;border-radius:50%}.preview-sizes{display:flex;border:1px solid var(--line);padding:3px;border-radius:10px;gap:3px;background:var(--tint)}.preview-sizes button{font-size:9px;padding:7px 9px;border-radius:7px;color:var(--muted)}.preview-sizes button[aria-pressed=true]{color:var(--ink);background:var(--surface);box-shadow:0 2px 5px #00000008}.preview-stage{position:relative;max-width:100%;margin:auto;border-radius:25px;background:var(--surface);overflow:hidden;box-shadow:0 25px 60px #23365112,0 0 0 1px var(--line)}.preview-stage[data-device=phone]{max-width:390px}.preview-stage[data-device=desktop]{border-radius:10px}.preview-viewport{position:absolute;top:0;left:50%;translate:-50% 0;transform-origin:top center}.preview-viewport iframe{display:block;border:0;background:var(--surface)}.preview-note{color:var(--muted);font-size:10px;line-height:1.7;max-width:380px;margin:19px auto;text-align:center}.preview-dialog{width:min(1390px,calc(100% - 26px));max-height:94dvh}.preview-dialog #dialog-body{padding:20px 24px 10px;background:var(--bg)}.preview-dialog .preview-tools{max-width:750px;margin:0 auto 19px}.preview-dialog .preview-stage[data-device=phone]{max-width:390px}.published-strip{margin-top:25px;border:1px solid var(--line);border-radius:20px;padding:23px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--surface)}.published-strip strong{font-size:12px;font-weight:500}.published-strip small{display:block;font-size:11px;margin:9px 0 0;overflow-wrap:anywhere}.published-strip .live-dot{margin-right:9px}.publish-success{text-align:center;padding:15px 0 24px}.publish-success>svg{width:48px;height:48px;padding:12px;border-radius:50%;background:#4b988411;color:#438e78;margin-bottom:15px;animation:publish-check .75s var(--ease)}.publish-success h3{font:400 31px Prata,serif;margin-bottom:12px}.publish-success p{font-size:13px;color:var(--muted);line-height:1.8;max-width:310px;margin:auto}.share-actions{display:grid;gap:11px}.share-url input{font-size:13px!important}.studio-actions .busy{white-space:nowrap}@keyframes publish-check{from{transform:scale(.6) rotate(-20deg);opacity:0}to{transform:none;opacity:1}}
@media(hover:hover){.layout-option:hover{transform:translateY(-3px);border-color:var(--blue)}.asset-upload:hover .asset-choose{color:var(--blue);border-color:var(--blue)}.color-presets button:hover{scale:1.12}.asset-choose,.color-presets button{transition:all .3s var(--ease)}}
@media(max-width:1100px){.studio-command-title{display:none}.studio-command{justify-content:flex-end}.studio-grid{gap:22px}.builder-panel{padding:23px}.layout-choice{gap:6px}.brand-uploads{grid-template-columns:1fr}.asset-art{height:170px}.asset-art img{max-height:170px}.asset-card{padding:18px}}
@media(max-width:1000px){.studio-command{top:80px}.studio-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.studio-grid .preview-column{top:164px}.studio-heading{margin-top:10px}.hero h1{font-size:50px}}
@media(max-width:700px){#header{background:var(--bg)}#main{padding-left:18px;padding-right:18px}.hero{padding:31px 27px}.hero h1{font-size:38px;letter-spacing:-1.9px}.hero h1 em{letter-spacing:-1.4px}.hero p{font-size:13px;line-height:1.85;margin:25px 0}.hero-preview{margin:45px 7px 7px}.mini-browser-body h3{font-size:23px}.hero .button{font-size:12px}.feature-grid{margin:30px 0}.feature h3{font-size:18px}.feature{padding:25px 4px}.account-welcome h2{font-size:25px}.owner-card{min-height:220px}.owner-face{padding:22px}.owner-identity strong{font-size:25px}.owner-top{font-size:10px}.owner-contacts strong{font-size:12px}.owner-contacts small{font-size:10px}.owner-card-toolbar{font-size:10px}.studio-heading h1{font-size:29px;letter-spacing:-1px;margin-top:13px}.studio-heading{gap:12px;margin:2px 0 19px}.studio-back{font-size:10px}.studio-plan{font-size:9px;padding:7px 10px}.studio-command{top:calc(78px + env(safe-area-inset-top));padding:12px 0;margin-bottom:22px}.studio-actions{display:grid;grid-template-columns:1.08fr 1fr 1.25fr;width:100%;gap:7px}.studio-actions .button{font-size:10px;min-height:43px;padding:10px 8px;border-radius:12px;gap:4px}.studio-actions svg{width:14px}.studio-grid{display:block}.studio-grid>.preview-column{display:none}.studio-editor{border-radius:21px}.builder-tabs{padding:12px;gap:5px}.builder-tabs button{font-size:10px;padding:9px 11px;gap:6px}.builder-tabs button svg{width:14px;height:14px}.editor-caption{padding:22px 22px 0;font-size:9px}.builder-panel{padding:24px 22px 28px}.builder-panel h2{font-size:23px;letter-spacing:-.6px}.builder-panel form>p.muted{font-size:12px;margin-bottom:27px}.builder-panel .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.field>span{font-size:11px}.field{margin-bottom:23px;gap:8px}.field input,.field textarea{padding:12px;min-width:0}.layout-choice{gap:7px}.layout-choice .layout-option{padding:7px}.layout-option strong{font-size:9px;line-height:1.4}.layout-option small{font-size:8px}.layout-sample{height:76px}.brand-uploads{grid-template-columns:1fr;gap:20px}.asset-card{padding:18px}.asset-title strong{font-size:13px}.asset-title{margin-bottom:17px}.asset-art{height:190px}.asset-art img{max-height:190px}.asset-choose{font-size:12px;min-height:42px}.asset-card>small{font-size:10px}.field-title h3{font-size:15px}.editor-section{margin-top:28px;padding-top:27px}.section-option{gap:17px;padding:23px 0}.section-option strong{font-size:13px}.section-option p{font-size:11px}.preview-dialog{max-height:calc(100dvh - 22px)}.preview-dialog .dialog-head{padding:18px 20px}.preview-dialog #dialog-body{padding:16px 12px}.preview-dialog .dialog-head h2{font-size:21px}.preview-tools{font-size:10px;gap:10px}.preview-sizes button{font-size:9px}.preview-stage{border-radius:20px}.published-strip{display:grid;padding:21px;gap:19px}.published-strip .button{width:100%}.in-studio .footer{margin-top:35px}.settings-title h2{font-size:22px}.settings-title p{font-size:11px}.theme-name{font-size:10px}.owner-layout .heading{margin-bottom:24px}.document-row{grid-template-columns:1fr 30px}.document-row>.doc-thumb{grid-column:1/-1;width:100%;height:160px;margin-bottom:10px}.document-row .field input{min-width:0}.editor-hint{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

@media(min-width:701px){.studio-editor .builder-tabs{mask-image:linear-gradient(90deg,#000 calc(100% - 18px),transparent)}}
@media(prefers-reduced-motion:no-preference){.asset-art img{animation:asset-arrive .6s var(--ease)}.color-swatch{transition:background .4s}.published-strip{animation:asset-arrive .6s var(--ease)}@keyframes asset-arrive{from{opacity:.2;transform:translateY(7px) scale(.97)}to{opacity:1;transform:none}}}

/* 1.4.5: separate school theme backgrounds */
.theme-color-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.theme-color-field{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px;border:1px solid var(--line);border-radius:15px;background:var(--bg)}.theme-color-field>div{display:grid;gap:4px;min-width:0}.theme-color-field strong{font-size:11px;font-weight:550}.theme-color-field small{font-size:9px;line-height:1.45}.theme-color-value{position:relative;display:flex;align-items:center;gap:8px;flex:none;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:6px 9px 6px 6px}.theme-color-value:before{content:'';width:30px;height:30px;border-radius:9px;background:var(--chosen);box-shadow:inset 0 0 0 1px #00000013}.theme-color-value input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.theme-color-value span{font:500 10px Onest,sans-serif;color:var(--muted)}
/* Модалки и загрузка не могут вытолкнуть страницу по горизонтали */
#dialog,#dialog-body,#dialog-body>*{max-width:100%;min-width:0}#dialog{overflow-x:hidden}#dialog-body{overflow-x:hidden}.preview-modal-layout,.preview-tools,.preview-stage,.share-actions,.payment-box,.notice,.field,.field input,.field textarea,.field select{min-width:0;max-width:100%}.asset-upload{overflow:hidden}.asset-upload input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:0;cursor:pointer}.table-wrap{max-width:100%;overscroll-behavior-x:contain}dialog:focus,#dialog-body:focus{outline:none}
@media(max-width:700px){.theme-color-grid{grid-template-columns:1fr}.theme-color-field{padding:14px}.theme-color-field strong{font-size:12px}.theme-color-field small{font-size:10px}}
