/* Blanki.online: дополнения конструктора (EDITOR, 07.11.2026).
   Иконки заголовков полей (п. 22 ТЗ, Tabler Icons MIT), плашки «Премиум» в галерее (п. 15), окна регистрации и оплаты,
   кнопка «Сохранить» (п. 12). Фирменные цвета: #5699d9 / #307bb9, рамки #cbe1ef, фон #edf3f6. */
:root{--bl-blue:#5699d9;--bl-blue-d:#307bb9;--bl-blue-dd:#2a6aa3;--bl-line:#cbe1ef;--bl-mist:#edf3f6;--bl-card:#f9fcfc;--bl-ink:#1f2a37;--bl-text:#4a5566}

/* ---------- иконки в заголовках карточек формы */
.ed .card h2{display:flex;align-items:center;gap:12px}
.ed .gal-head h2{display:flex;align-items:center;gap:12px}
.h-ic{flex:none;width:38px;height:38px;border-radius:10px;background:var(--bl-mist);color:var(--bl-blue);display:inline-grid;place-items:center}
.h-ic svg{width:22px;height:22px;display:block}
@media (max-width:600px){.h-ic{width:34px;height:34px;border-radius:9px}.h-ic svg{width:20px;height:20px}}

/* ---------- плашка «Премиум» в галерее шаблонов (у исходного проекта оранжевая слева, здесь светлая с короной справа) */
.bl-prem{position:absolute;top:14px;right:14px;z-index:2;display:inline-flex;align-items:center;gap:5px;padding:4px 9px 4px 7px;border-radius:999px;
  background:rgba(255,255,255,.95);border:1px solid var(--bl-line);color:var(--bl-blue-dd);font:400 12px/1.2 Montserrat,system-ui,sans-serif;
  box-shadow:0 2px 10px rgba(86,153,217,.18);pointer-events:none;white-space:nowrap}
.bl-prem__i{color:var(--bl-blue);flex:none}
html.bl-premium .bl-prem{display:none}

/* ---------- кнопка «Сохранить» в панели предпросмотра */
.pv-acts .bl-save{display:inline-flex;align-items:center;gap:6px}
.pv-acts .bl-save svg{width:18px;height:18px;flex:none}
.pv-acts .bl-save[aria-busy="true"]{opacity:.6;cursor:progress}

/* ---------- окна: регистрация и премиум */
dialog.blx{border:0;padding:30px 28px 26px;border-radius:16px;width:min(460px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;
  background:#fff;color:var(--bl-ink);box-shadow:0 20px 60px rgba(31,42,55,.22);font-family:Montserrat,system-ui,sans-serif}
dialog.blx::backdrop{background:rgba(24,36,52,.5)}
.blx__x{position:absolute;top:12px;right:12px;width:44px;height:44px;border:0;border-radius:10px;background:none;color:#5b6676;cursor:pointer;display:grid;place-items:center}
.blx__x:hover{background:var(--bl-mist);color:var(--bl-ink)}
.blx__badge{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--bl-mist);color:var(--bl-blue);margin-bottom:14px}
.blx__title{font-size:22px;line-height:1.25;margin:0 36px 10px 0;color:var(--bl-ink)}
.blx__title:focus{outline:none}
.blx__lead{font-size:15px;line-height:1.5;color:var(--bl-text);margin:0 0 18px}
.blx__form{display:grid;gap:10px}
.blx__label{font-size:14px;color:var(--bl-text)}
.blx__input{width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--bl-line);border-radius:10px;font:400 16px Montserrat,system-ui,sans-serif;color:var(--bl-ink);background:#fff}
.blx__input:focus{outline:2px solid var(--bl-blue);outline-offset:0;border-color:var(--bl-blue)}
.blx__check{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;line-height:1.45;color:var(--bl-text);cursor:pointer;margin:4px 0}
.blx__check input{width:20px;height:20px;flex:none;margin:1px 0 0;accent-color:var(--bl-blue-d);cursor:pointer}
.blx__check a,.blx__fine a{color:var(--bl-blue-d);text-decoration:underline}
.blx__err{margin:4px 0 0;padding:10px 12px;border-radius:10px;background:#fff4f2;border:1px solid #f3c9c1;color:#9b2c1c;font-size:14px;line-height:1.45}
.blx__ok{margin:10px 0 0;font-size:14px;color:#1f7a4d;min-height:1em}
.blx__btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 22px;border:0;border-radius:10px;
  background:var(--bl-blue);color:#fff;font:400 16px Montserrat,system-ui,sans-serif;cursor:pointer;transition:background .2s;width:100%}
.blx__btn:hover{background:var(--bl-blue-d)}
.blx__btn:disabled{opacity:.6;cursor:not-allowed}
.blx__btn[aria-busy="true"]{cursor:progress}
.blx__btn--ghost{background:#f4f9fa;color:var(--bl-blue-d);border:1px solid var(--bl-line)}
.blx__btn--ghost:hover{background:#fff;border-color:#9ec1da}
.blx__alt{margin:16px 0 0;font-size:14px;color:var(--bl-text);text-align:center}
.blx__link{background:none;border:0;padding:6px 4px;min-height:44px;color:var(--bl-blue-d);font:inherit;text-decoration:underline;cursor:pointer}
.blx__row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.blx__row--stack{grid-template-columns:1fr}
.blx__creds{margin:0;display:grid;gap:8px;padding:14px 16px;border-radius:12px;background:var(--bl-card);border:1px solid var(--bl-line)}
.blx__creds div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.blx__creds dt{color:var(--bl-text);font-size:14px}
.blx__creds dd{margin:0;font:400 16px/1.4 ui-monospace,Consolas,monospace;color:var(--bl-ink);overflow-wrap:anywhere}
.blx__plan{padding:16px 18px;border-radius:12px;background:var(--bl-card);border:1px solid var(--bl-line);box-shadow:0 0 21px rgba(200,222,231,.43);margin-bottom:14px}
.blx__price{margin:0 0 6px;font-size:15px;color:var(--bl-text)}
.blx__price b{font-weight:400;font-size:28px;color:var(--bl-ink);margin-right:4px}
.blx__then{margin:0;font-size:14px;line-height:1.5;color:var(--bl-text)}
.blx__consents{display:grid;gap:4px}
.blx__fine{margin:14px 0 0;font-size:12.5px;line-height:1.5;color:#5b6676}
@media (max-width:480px){dialog.blx{padding:26px 18px 20px}.blx__row{grid-template-columns:1fr}.blx__title{font-size:20px}}
@media (prefers-reduced-motion:no-preference){dialog.blx[open]{animation:blx-in .18s ease-out}}
@keyframes blx-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---------- Окно оплаты Blanki: на весь экран — тарифы, живое превью резюме, панель возможностей ---------- */
dialog.blx.blx--pay{width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border-radius:0;overflow:hidden;background:#fff;box-shadow:none}
dialog.blx.blx--pay[open]{animation:bp-in .35s cubic-bezier(.2,.8,.2,1)}
dialog.blx.blx--pay::backdrop{background:rgba(13,22,36,.4)}
@keyframes bp-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.blx--pay .blx__x{position:fixed;top:18px;right:18px;z-index:5;width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.95);border:1px solid #e1ecf3;color:#0d1018;box-shadow:0 6px 18px rgba(13,22,36,.12)}
.blx--pay .blx__x:hover{background:#fff;color:#307bb9;border-color:#9ec1da}
.bp{display:grid;grid-template-columns:minmax(440px,1.15fr) minmax(280px,.75fr) minmax(330px,.8fr);height:100%}
/* Левая колонка */
.bp__main{display:flex;flex-direction:column;justify-content:center;gap:14px;padding:40px clamp(28px,4vw,64px);background:#fff url("/assets/hero-lines.svg?v=1") left top/1100px auto no-repeat;min-width:0}
.bp__kicker{display:inline-flex;align-self:flex-start;align-items:center;gap:8px;margin:0;padding:6px 12px;border-radius:100px;background:#eef6fe;border:1px solid #cbe1ef;color:#307bb9;font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.bp__title{margin:0;font-size:clamp(24px,2.3vw,32px);line-height:1.2;color:#0d1018;max-width:560px}
.bp__lead{margin:-4px 0 4px;font-size:15px;line-height:1.5;color:#4a525e;max-width:560px}
.bp__plans{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-width:600px}
.bp__plans.is-single{grid-template-columns:minmax(0,300px)}
.bp__plan{position:relative;display:grid;grid-template-columns:22px 1fr auto;grid-template-areas:"r n p" "r t d";align-items:center;column-gap:10px;row-gap:4px;padding:16px 16px 15px;border:1.5px solid #dbe8f2;border-radius:18px;background:#fff;text-align:left;font:inherit;color:#0d1018;cursor:pointer;transition:border-color .2s,box-shadow .2s,transform .2s,background .2s}
.bp__plan:hover{border-color:#9ec1da;transform:translateY(-2px);box-shadow:0 12px 26px rgba(48,123,185,.12)}
.bp__plan.is-on{border-color:#5699d9;background:linear-gradient(180deg,#f2f8fd,#fff);box-shadow:0 0 0 4px rgba(86,153,217,.15),0 14px 30px rgba(48,123,185,.14)}
.bp__plan:focus-visible{outline:3px solid #9ec1da;outline-offset:2px}
.bp__radio{grid-area:r;width:20px;height:20px;border-radius:50%;border:2px solid #9ec1da;background:#fff;transition:border-color .2s,box-shadow .2s}
.bp__plan.is-on .bp__radio{border-color:#5699d9;box-shadow:inset 0 0 0 4px #fff,inset 0 0 0 10px #5699d9}
.bp__pname{grid-area:n;font-size:18px}
.bp__pnote{grid-area:t;font-size:12.5px;line-height:1.35;color:#5b6676}
.bp__pprice{grid-area:p;font-size:28px;line-height:1;white-space:nowrap}
.bp__pday{grid-area:d;justify-self:end;font-size:12.5px;color:#307bb9;white-space:nowrap}
.bp__ribbon{position:absolute;top:-11px;right:14px;padding:3px 10px;border-radius:100px;background:linear-gradient(90deg,#5699d9,#307bb9);color:#fff;font-size:11px;letter-spacing:.03em;box-shadow:0 6px 14px rgba(48,123,185,.3)}
.bp__checks{list-style:none;margin:2px 0 0;padding:0;display:grid;gap:9px;max-width:600px}
.bp__checks li{display:flex;align-items:center;gap:10px;font-size:15px;color:#2b303b}
.bp__checks svg{flex:none;color:#fff;background:#5699d9;border-radius:50%;padding:3px;width:20px;height:20px}
.bp__payrow{display:flex;align-items:center;gap:18px;flex-wrap:wrap;max-width:600px;margin-top:4px}
.bp__pay{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:280px;min-height:58px;padding:12px 26px;border:0;border-radius:14px;background:linear-gradient(90deg,#5699d9,#4a8fd0);color:#fff;font:400 19px/1.2 Montserrat,system-ui,sans-serif;cursor:pointer;box-shadow:0 14px 28px rgba(86,153,217,.4);transition:transform .15s,box-shadow .2s,filter .2s}
.bp__pay::after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent);transform:skewX(-20deg);animation:bp-shine 3.2s ease-in-out infinite}
@keyframes bp-shine{0%,60%{left:-60%}100%{left:130%}}
.bp__pay:hover{filter:brightness(.95);box-shadow:0 16px 32px rgba(48,123,185,.45)}
.bp__pay svg{transition:transform .2s}.bp__pay:hover svg:last-child{transform:translateX(3px)}
.bp__pay:active{transform:scale(.985)}
.bp__pay:disabled{opacity:.6;cursor:not-allowed;box-shadow:none}.bp__pay:disabled::after{display:none}
.bp__pay[aria-busy="true"]{cursor:progress;opacity:.8}
.bp__pay:focus-visible,.bp__free:focus-visible{outline:3px solid #9ec1da;outline-offset:2px}
.bp__secure{display:flex;align-items:center;gap:10px;margin:0;font-size:12.5px;line-height:1.4;color:#5b6676;max-width:240px}
.bp__shield{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#eef6fe;border:1px solid #cbe1ef;color:#307bb9}
.bp__legal{margin:0;font-size:12px;line-height:1.45;color:#6b7a88;max-width:600px}
.bp__legal a{color:#307bb9}
.bp__free{align-self:flex-start;min-height:40px;padding:4px 0;border:0;background:none;color:#307bb9;font:400 14px/1.3 Montserrat,system-ui,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.bp__free:hover{color:#2a6aa3}
.blx--pay .blx__err{margin:0;max-width:600px}
/* Галочки (только 3 дня), по нажатию «Оплатить» */
.blx--pay .blx__consents{display:grid;gap:9px;max-width:600px;padding:14px 16px;border:1px solid #cbe1ef;border-radius:14px;background:#f9fcfd;opacity:0;transform:translateY(8px);transition:opacity .25s ease,transform .3s cubic-bezier(.2,.8,.2,1),border-color .2s,box-shadow .2s}
.blx--pay .blx__consents.is-visible{opacity:1;transform:none}
.blx--pay .blx__consents.is-attention{border-color:#e5484d;box-shadow:0 0 0 3px rgba(229,72,77,.15);animation:blx-shake .45s ease}
.blx--pay .blx__consents.is-ok{border-color:#5699d9}
.blx--pay .blx__warn{margin:0;font-size:13px;line-height:1.4;color:#b42318}
.blx--pay .blx__consents.is-ok .blx__warn{color:#1f7a4d}
.blx--pay .blx__check{position:relative;display:flex;align-items:flex-start;gap:10px;margin:0;font-size:13px;line-height:1.45;color:#4a525e;cursor:pointer}
.blx--pay .blx__cb{position:absolute;opacity:0;width:20px;height:20px;margin:0;left:0;top:1px;cursor:pointer}
.blx--pay .blx__box{flex:none;display:grid;place-items:center;width:20px;height:20px;border:1.5px solid #9ec1da;border-radius:6px;background:#fff;transition:background .2s,border-color .2s,box-shadow .2s,transform .15s}
.blx--pay .blx__box svg{opacity:0;transform:scale(.6);transition:opacity .2s,transform .2s}
.blx--pay .blx__cb:checked + .blx__box{background:#5699d9;border-color:#5699d9}
.blx--pay .blx__cb:checked + .blx__box svg{opacity:1;transform:none}
.blx--pay .blx__cb:focus-visible + .blx__box{box-shadow:0 0 0 3px rgba(86,153,217,.35)}
.blx--pay .blx__check:hover .blx__box{border-color:#5699d9}
.blx--pay .blx__check:active .blx__box{transform:scale(.92)}
.blx--pay .blx__ctext a{color:#307bb9}
@keyframes blx-shake{0%,100%{transform:none}20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(4px)}}
dialog.blx--pay.is-consent .bp__checks{display:none}
/* Центр: живое превью */
.bp__preview{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px;padding:40px 24px;background:linear-gradient(180deg,#f4f9fd,#edf3f6);border-left:1px solid #e9f1f6;min-width:0}
.bp__ptitle{margin:0;font-size:15px;color:#2b303b;text-align:center;max-width:320px}
.bp__sheet{position:relative;width:min(100%,320px);aspect-ratio:580/820;border-radius:10px;background:#fff;overflow:hidden;box-shadow:0 24px 50px rgba(13,22,36,.18),0 0 0 1px #e1ecf3;transform:rotate(-1.5deg);transition:transform .4s cubic-bezier(.2,.8,.2,1)}
.bp__sheet:hover{transform:rotate(0) translateY(-4px)}
.bp__sheet .pg{pointer-events:none}
.bp__thumbimg{display:block;width:100%;height:100%;object-fit:cover}
.bp__sheet-badge{position:absolute;top:10px;right:10px;z-index:2;display:inline-flex;align-items:center;gap:5px;padding:6px 11px;border-radius:100px;background:linear-gradient(90deg,#5699d9,#307bb9);color:#fff;font-size:12px;box-shadow:0 8px 18px rgba(48,123,185,.35)}
.bp__pnote2{margin:0;font-size:12.5px;color:#6b7a88}
/* Правая панель */
.bp__side{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center;gap:22px;padding:72px clamp(24px,2.6vw,44px) 40px;color:#fff;background:linear-gradient(160deg,#6aa8e2 0%,#4b8fd3 45%,#2f74b4 100%)}
.bp__side::after{content:"";position:absolute;inset:0;background:url("/assets/hero-lines.svg?v=1") center/900px auto no-repeat;opacity:.3;mix-blend-mode:screen;pointer-events:none}
.bp__side > *{position:relative;z-index:1}
.bp__orb{position:absolute;z-index:0;border-radius:50%;pointer-events:none}
.bp__orb--1{width:300px;height:300px;right:-120px;top:-110px;background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.45),rgba(255,255,255,0) 70%)}
.bp__orb--2{width:240px;height:240px;left:-90px;bottom:-80px;background:radial-gradient(circle at 60% 40%,rgba(255,255,255,.35),rgba(255,255,255,0) 70%)}
.bp__stitle{margin:0;font-size:20px;line-height:1.3}
.bp__sfeat{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.bp__sfeat li{display:flex;align-items:center;gap:12px;font-size:14.5px;line-height:1.4}
.bp__si{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35)}
.bp__steps{padding:16px 16px 14px;border-radius:16px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.bp__steps-t{margin:0 0 10px;font-size:14px;opacity:.95}
.bp__steps ol{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.bp__steps li{display:flex;align-items:center;gap:10px;font-size:13.5px}
.bp__steps b{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#fff;color:#307bb9;font-weight:400;font-size:13px}
.bp__brand{display:flex;align-items:center;gap:12px;margin:0;font-size:13px}
.bp__brand img{border-radius:10px;background:#fff;padding:3px}
.bp__brand span{display:grid;gap:2px}.bp__brand b{font-weight:400;font-size:15px}
.bp__brand a{color:#fff;text-decoration:underline;text-underline-offset:3px;opacity:.95}
/* Невысокие экраны */
@media (max-height:780px) and (min-width:901px){.bp__main{gap:11px;padding-top:28px;padding-bottom:24px}.bp__checks{gap:7px}.bp__checks li{font-size:14px}.bp__plan{padding:13px 14px}.bp__side{gap:16px;padding-top:64px}.bp__sfeat{gap:9px}.bp__sheet{width:min(100%,280px)}}
@media (max-height:680px) and (min-width:901px){.bp__lead,.bp__steps{display:none}}
/* Без центральной колонки */
@media (max-width:1240px){.bp{grid-template-columns:minmax(0,1.3fr) minmax(320px,.8fr)}.bp__preview{display:none}}
/* Планшет и телефон: одна колонка, обычная прокрутка страницы */
@media (max-width:900px){
  dialog.blx.blx--pay{overflow-y:auto;overscroll-behavior:contain}
  .bp{display:block;height:auto}
  .bp__main{padding:76px 20px 26px;gap:12px}
  .bp__title{font-size:23px}
  .bp__plans{grid-template-columns:1fr 1fr;gap:10px}
  .bp__plan{grid-template-columns:20px 1fr;grid-template-areas:"r n" "r p" "r d";padding:13px 12px;row-gap:2px}
  .bp__pnote{display:none}.bp__pprice{font-size:23px;justify-self:start}.bp__pday{justify-self:start}
  .bp__payrow{flex-direction:column;align-items:stretch;gap:12px}
  .bp__pay{min-width:0;width:100%}
  .bp__secure{max-width:none}
  .bp__free{align-self:center}
  .bp__side{padding:30px 20px 34px;gap:18px}
  .blx--pay .blx__x{top:14px;right:14px}
}
@media (prefers-reduced-motion:reduce){dialog.blx.blx--pay[open]{animation:none}.bp__pay::after{animation:none}.blx--pay .blx__consents{transition:none}.blx--pay .blx__consents.is-attention{animation:none}.bp__plan,.bp__sheet{transition:none}}

@media (max-height:820px) and (min-width:901px){dialog.blx--pay.is-consent .bp__lead{display:none}dialog.blx--pay.is-consent .bp__kicker{display:none}}
@media (max-height:740px) and (min-width:901px){.bp__side{gap:12px;padding-top:56px;padding-bottom:24px}.bp__sfeat{gap:7px}.bp__si{width:32px;height:32px}.bp__steps{padding:12px 14px 10px}.bp__steps ol{gap:6px}.bp__stitle{font-size:18px}}
@media (max-height:740px) and (min-width:901px){.bp__lead,.bp__steps{display:none}}
@media (max-height:740px) and (min-width:901px){.bp__main{gap:9px;padding-top:20px;padding-bottom:16px}.bp__title{font-size:24px}.blx--pay .blx__consents{padding:10px 14px;gap:7px}.bp__pay{min-height:54px}}
/* ---------- Адаптивный аудит 07.11.2026 (layout-audit.mjs) */
/* счётчик шаблонов в одну строку, заголовок галереи сжимается сам */
#gal-count{flex:none;white-space:nowrap}
.gal-head{align-items:center;flex-wrap:wrap;row-gap:6px}
.gal-head h2{min-width:0}
/* нижняя панель на телефоне: активная кнопка в фирменных цветах вместо фиолетового исходного проекта */
@media (max-width:900px){
  .mbar button[aria-current="page"]{background:var(--bl-mist);color:#26679d;border-color:var(--bl-line)}
  .mbar .mb-dl{background:var(--bl-blue-d);border-color:var(--bl-blue-d);color:#fff}
  .ed-form{padding-bottom:88px}
}
/* контурные кнопки конструктора («Печать», «Добавить»): текст темнее на тон, контраст ≥4,5:1 на #f9fcfc */
.btn-out{color:#26679d}
.btn-out:hover{color:#fff}
/* плашка «Премиум» на узкой миниатюре не закрывает шапку шаблона */
@media (max-width:600px){.bl-prem{top:8px;right:8px;padding:3px 7px 3px 5px;font-size:11px;gap:3px}.bl-prem__i{width:12px;height:12px}}
/* поля в одну колонку на телефоне: отступ после последнего поля пары, иначе следующая подпись прилипает */
@media (max-width:560px){:not(.item) > .grid2:not(:last-child) > .field:last-child{margin-bottom:16px}}
.bp__plan{grid-template-areas:"r n p" "r t t" "r d d"}.bp__pday{justify-self:start}.bp__sheet-badge{top:auto;bottom:12px;right:12px}@media (max-width:900px){.bp__plan{grid-template-areas:"r n" "r p" "r d"}}

/* ========== Форма конструктора в фирменном стиле (07.11.2026). Иконки — Tabler Icons (MIT, https://tabler.io/icons), outline, data-uri ========== */
.ed{--ti-user:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0'/%3E%3Cpath d='M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2'/%3E%3C/svg%3E");
  --ti-briefcase:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z'/%3E%3Cpath d='M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M12 12l0 .01'/%3E%3Cpath d='M3 13a20 20 0 0 0 18 0'/%3E%3C/svg%3E");
  --ti-phone:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5l1.5 -2.5l5 2v4a2 2 0 0 1 -2 2a16 16 0 0 1 -15 -15a2 2 0 0 1 2 -2'/%3E%3C/svg%3E");
  --ti-mail:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10z'/%3E%3Cpath d='M3 7l9 6l9 -6'/%3E%3C/svg%3E");
  --ti-pin:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0'/%3E%3Cpath d='M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0z'/%3E%3C/svg%3E");
  --ti-link:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 15l6 -6'/%3E%3Cpath d='M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464'/%3E%3Cpath d='M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463'/%3E%3C/svg%3E");
  --ti-wallet:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 8v-3a1 1 0 0 0 -1 -1h-10a2 2 0 0 0 0 4h12a1 1 0 0 1 1 1v3m0 4v3a1 1 0 0 1 -1 1h-12a2 2 0 0 1 -2 -2v-12'/%3E%3Cpath d='M20 12v4h-4a2 2 0 0 1 0 -4h4'/%3E%3C/svg%3E");
  --ti-clock:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3C/svg%3E");
  --ti-calendar:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12z'/%3E%3Cpath d='M16 3v4'/%3E%3Cpath d='M8 3v4'/%3E%3Cpath d='M4 11h16'/%3E%3C/svg%3E");
  --ti-flag:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5a5 5 0 0 1 7 0a5 5 0 0 0 7 0v9a5 5 0 0 1 -7 0a5 5 0 0 0 -7 0v-9z'/%3E%3Cpath d='M5 21v-7'/%3E%3C/svg%3E");
  --ti-plus:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5l0 14'/%3E%3Cpath d='M5 12l14 0'/%3E%3C/svg%3E");
  --ti-camera:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7h1a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2'/%3E%3Cpath d='M9 13a3 3 0 1 0 6 0a3 3 0 0 0 -6 0'/%3E%3C/svg%3E");
  --ti-refresh:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4'/%3E%3Cpath d='M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4'/%3E%3C/svg%3E");
  --ti-crop:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5v10a1 1 0 0 0 1 1h10'/%3E%3Cpath d='M5 8h10a1 1 0 0 1 1 1v10'/%3E%3C/svg%3E");
  --ti-trash:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7l16 0'/%3E%3Cpath d='M10 11l0 6'/%3E%3Cpath d='M14 11l0 6'/%3E%3Cpath d='M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12'/%3E%3Cpath d='M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3'/%3E%3C/svg%3E");
  --ti-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6478' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
  --ti-chevron-b:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235699d9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E")}

/* карточки разделов */
.ed .card{background:#fff;border:1px solid #e1ecf3;border-radius:16px;box-shadow:0 0 21px rgba(200,222,231,.43);transition:border-color .25s,box-shadow .25s}
.ed .card:hover{border-color:#cbe1ef}
.ed .card:focus-within{border-color:#9ec1da;box-shadow:0 0 0 4px rgba(86,153,217,.08),0 6px 26px rgba(160,196,220,.45)}
.ed .item{border:1px solid #e1ecf3;background:#f9fcfc;border-radius:12px}
.ed .item:focus-within{border-color:#9ec1da;background:#f4f9fd}

/* подписи над полями */
.ed .field>label,.ed .lbl,.ed .checks legend,.ed .period legend{font-size:14px;font-weight:400;line-height:20px;color:#2b303b}
.ed .field{gap:6px}

/* поля ввода */
.ed input[type=text],.ed input[type=tel],.ed input[type=email],.ed input[type=search],.ed select,.ed textarea{min-height:48px;padding:12px 14px;border:1px solid #cbe1ef;border-radius:10px;background-color:#fff;
  font:400 16px/1.3 Montserrat,system-ui,sans-serif;color:#0d1018;transition:border-color .2s,box-shadow .2s,background-color .2s}
.ed textarea{min-height:96px;line-height:1.45}
.ed input::placeholder,.ed textarea::placeholder{color:#8a96a3;opacity:1}
.ed input[type=text]:hover,.ed input[type=tel]:hover,.ed input[type=email]:hover,.ed textarea:hover,.ed select:hover{border-color:#9ec1da;background-color:#fff}
.ed input[type=text]:focus,.ed input[type=tel]:focus,.ed input[type=email]:focus,.ed textarea:focus,.ed select:focus,
.ed input[type=text]:focus-visible,.ed input[type=tel]:focus-visible,.ed input[type=email]:focus-visible,.ed textarea:focus-visible,.ed select:focus-visible{outline:none;border-color:#5699d9;box-shadow:0 0 0 4px rgba(86,153,217,.25)}
.ed select{padding-right:42px;background-image:var(--ti-chevron);background-repeat:no-repeat;background-position:right 14px center;background-size:18px 18px}
.ed select:focus{background-image:var(--ti-chevron-b)}

/* иконки внутри полей: значок рисуется ::after у обёртки поля, при фокусе становится синим */
.ed .field:has(>#f-surname,>#f-first,>#f-role,>#f-phone,>#f-email,>#f-city,>#f-site,>#f-salary,>#f-employment,>#f-birth,>#f-citizen){position:relative}
.ed .field:has(>#f-surname,>#f-first,>#f-role,>#f-phone,>#f-email,>#f-city,>#f-site,>#f-salary,>#f-employment,>#f-birth,>#f-citizen)::after{content:"";position:absolute;left:14px;bottom:15px;width:18px;height:18px;pointer-events:none;
  background:#8a96a3;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat;transition:background-color .2s}
.ed .field:has(>#f-surname,>#f-first,>#f-role,>#f-phone,>#f-email,>#f-city,>#f-site,>#f-salary,>#f-employment,>#f-birth,>#f-citizen):focus-within::after{background:#5699d9}
.ed #f-surname,.ed #f-first,.ed #f-role,.ed #f-phone,.ed #f-email,.ed #f-city,.ed #f-site,.ed #f-salary,.ed #f-employment,.ed #f-birth,.ed #f-citizen{padding-left:44px}
.ed .field:has(>#f-surname),.ed .field:has(>#f-first){--ic:var(--ti-user)}
.ed .field:has(>#f-role){--ic:var(--ti-briefcase)}
.ed .field:has(>#f-phone){--ic:var(--ti-phone)}
.ed .field:has(>#f-email){--ic:var(--ti-mail)}
.ed .field:has(>#f-city){--ic:var(--ti-pin)}
.ed .field:has(>#f-site){--ic:var(--ti-link)}
.ed .field:has(>#f-salary){--ic:var(--ti-wallet)}
.ed .field:has(>#f-employment){--ic:var(--ti-clock)}
.ed .field:has(>#f-birth){--ic:var(--ti-calendar)}
.ed .field:has(>#f-citizen){--ic:var(--ti-flag)}

/* «+ Добавить …»: пунктирная рамка и значок plus */
.ed .btn-add{gap:10px;min-height:48px;padding:12px 20px;border:1.5px dashed #9ec1da;border-radius:10px;background:#f9fcfc;color:#26679d;font:400 15px Montserrat,system-ui,sans-serif;transition:border-color .2s,background-color .2s,color .2s,transform .12s}
.ed .btn-add:hover{border-style:dashed;border-color:#5699d9;background:#eef6fe;color:#26679d}
.ed .btn-add:focus-visible{outline:none;border-color:#5699d9;box-shadow:0 0 0 4px rgba(86,153,217,.25)}
.ed .btn-add>span[aria-hidden]{width:18px;height:18px;font-size:0;flex:none;background:currentColor;-webkit-mask:var(--ti-plus) center/contain no-repeat;mask:var(--ti-plus) center/contain no-repeat}

/* переключатели и галочки в фирменном синем */
.ed .sw{background:#f9fcfc;border-color:#cbe1ef;transition:border-color .2s,background-color .2s}
.ed .sw:hover{border-color:#9ec1da}
.ed .sw:has(input:checked){background:#f2f8fd;border-color:#9ec1da}
.ed .sw-k{background:#b9cbd8}
.ed .sw input:checked~.sw-k{background:#5699d9}
.ed .sw:has(input:focus-visible){outline:3px solid #9ec1da;outline-offset:2px}
.ed input[type=checkbox]:not([role=switch]){border-color:#9ec1da;border-radius:6px}
.ed input[type=checkbox]:not([role=switch]):hover{border-color:#5699d9;box-shadow:0 0 0 4px rgba(86,153,217,.15)}
.ed input[type=checkbox]:not([role=switch]):checked{background-color:#5699d9;border-color:#5699d9}
.ed .checks label:has(input:checked) span{color:#26679d;font-weight:400}

/* фото: зона выровнена по полям «Фамилия» и «Имя» — верх по верху первого поля, низ по низу второго */
.ed .identity{gap:20px;align-items:flex-start}
.ed .photo-box{position:relative;padding-top:26px;gap:8px}
.ed .photo-box::before{content:"Фото";position:absolute;top:0;left:0;font-size:14px;line-height:20px;color:#2b303b}
.ed .photo-btn{width:112px;height:138px;border:1.5px dashed #9ec1da;border-radius:12px;background:#f9fcfc;color:#5b6478;transition:border-color .2s,background-color .2s,color .2s,box-shadow .2s,transform .12s}
.ed .photo-btn:hover{border-color:#5699d9;background:#eef6fe;color:#26679d}
.ed .photo-btn:focus-visible{outline:none;border-color:#5699d9;box-shadow:0 0 0 4px rgba(86,153,217,.25)}
.ed .photo-btn.has{border:1px solid #cbe1ef;background:#fff}
.ed .photo-btn img{border-radius:11px;object-fit:cover;object-position:50% 30%}
.ed .photo-ph{gap:8px;font:400 13px/1.3 Montserrat,system-ui,sans-serif;color:inherit}
.ed .photo-ph>svg{display:none}
.ed .photo-ph::before{content:"";width:30px;height:30px;background:currentColor;-webkit-mask:var(--ti-camera) center/contain no-repeat;mask:var(--ti-camera) center/contain no-repeat;transition:transform .25s}
.ed .photo-btn:hover .photo-ph::before{transform:translateY(-2px)}
/* кнопки «Заменить», «Кадрировать», «Удалить»: круглые значки поверх нижнего края фото */
@media (min-width:561px){
  .ed .photo-acts{position:absolute;left:0;right:0;top:118px;justify-content:center;gap:6px;pointer-events:none}
  .ed .photo-acts .link{pointer-events:auto;width:32px;height:32px;min-height:0;padding:0;justify-content:center;border-radius:50%;background:#fff;border:1px solid #cbe1ef;box-shadow:0 4px 12px rgba(13,22,36,.14);font-size:0;color:#26679d;transition:background-color .2s,color .2s,border-color .2s,transform .15s}
  .ed .photo-acts .link::before{content:"";width:16px;height:16px;background:currentColor;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
  .ed .photo-acts .link:hover{background:#eef6fe;border-color:#5699d9;transform:translateY(-1px);text-decoration:none}
  .ed .photo-acts #photo-del:hover{color:#b42318;border-color:#f3c9c1;background:#fff4f2}
  .ed .photo-acts .link:focus-visible{outline:3px solid #9ec1da;outline-offset:1px}
}
.ed #photo-new{--ic:var(--ti-refresh)}
.ed #photo-edit{--ic:var(--ti-crop)}
.ed #photo-del{--ic:var(--ti-trash)}
@media (max-width:560px){
  .ed .photo-box{padding-top:26px;align-items:flex-start}
  .ed .photo-acts{align-self:center}
  .ed .photo-acts .link{min-height:44px;font-size:14px;color:#26679d}
}
@media (prefers-reduced-motion:reduce){.ed .card,.ed .btn-add,.ed .photo-btn,.ed .photo-ph::before,.ed .photo-acts .link,.ed .sw,.ed input,.ed select,.ed textarea,.ed .field::after{transition:none}.ed .photo-btn:hover .photo-ph::before,.ed .photo-acts .link:hover{transform:none}}
/* пары полей не растягиваются по высоте ряда: иначе значок у последнего поля съезжает вниз */
.ed .grid2{align-items:start}
