/* Вход, регистрация и оформление заказа — по макету design/im.pen
   (Регистрация LLw5U, Вход M5oq6, Заказ Rav3u / gYtz2 / B19KbT, итоги H1xVBy / UUkGa / la3ZH).
   Общие кнопки, поля и метки — из base.css; здесь только то, что есть в этих экранах. Префикс .fl-. */

/* ---------- Логотип ---------- */
.fl-logo{display:inline-flex;align-items:center;gap:10px;font-size:22px;line-height:30px;font-weight:600;letter-spacing:-.6px;color:var(--ink)}
.fl-logo .logo{width:36px;height:36px;border-radius:12px;background:var(--ink);color:var(--lime);display:inline-flex;align-items:center;justify-content:center}
.fl-logo.light{color:#fff}.fl-logo.light .logo{background:var(--lime);color:var(--ink)}

/* Высокие кнопки макета: обводка и белая — той же высоты, что кнопка с кружком (64 / 48) */
.fl .btn.line{padding:21px 26px}
.fl .btn.white,.fl .btn.top{padding:14px 26px;background:#fff;color:var(--ink)}
.fl .btn[disabled]{opacity:.4;cursor:not-allowed}

/* ---------- Вход / регистрация: фото слева, форма справа ---------- */
.fl-auth{display:flex;gap:24px;padding:24px;min-height:100vh;max-width:1512px;margin:0 auto}
.fl-photo{flex:0 0 620px;position:sticky;top:24px;height:calc(100vh - 48px);min-height:720px;border-radius:var(--r-xl);padding:36px;overflow:hidden;
  display:flex;flex-direction:column;justify-content:space-between;color:#fff;background:#3a3a3a center/cover no-repeat}
/* Вход и регистрация в рамке сайта: шапка пилюлей сверху, подвал снизу (layouts/auth). Фото — на экран под шапкой. */
.fl-shell{max-width:1512px;margin:0 auto;padding:24px;display:flex;flex-direction:column;gap:16px}
.fl-bar{border-radius:100px;padding:12px 12px 12px 28px}
.fl-shell .fl-auth{padding:0;min-height:0;max-width:none;margin:0;width:100%}
/* Фото не липкое: прокручивается вместе с формой, иначе при прокрутке они разъезжаются. */
.fl-shell .fl-photo{position:relative;top:auto;height:calc(100vh - 140px);min-height:640px;justify-content:flex-end}
.fl-photo::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.2) 0%,rgba(0,0,0,0) 30%,rgba(0,0,0,.7) 100%);pointer-events:none}
.fl-photo>*{position:relative}
.fl-photo-bottom{display:flex;flex-direction:column;gap:24px}
.fl-photo-title{font-size:60px;line-height:63px;font-weight:500;letter-spacing:-2.4px;text-transform:uppercase}
.fl-photo-title span{display:block;color:var(--lime)}
.fl-glass{backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);background:rgba(255,255,255,.15);outline:1px solid rgba(255,255,255,.33);outline-offset:-1px;border-radius:var(--r-md);padding:28px;font-size:18px;line-height:25px}
.fl-steps-list{display:flex;flex-direction:column;gap:18px}
.fl-steps-list .s{display:flex;align-items:center;gap:16px}
.fl-steps-list .n{width:36px;height:36px;border-radius:50%;background:#fff;color:var(--ink);font-size:14px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;flex:none}
.fl-steps-list .t{font-size:16px;line-height:22px;font-weight:500}
.fl-steps-list .d{font-size:13px;line-height:18px;color:rgba(255,255,255,.8)}

.fl-side{flex:1;min-width:0;padding:12px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:40px}
.fl-top{width:100%;display:flex;align-items:center;justify-content:flex-end;gap:16px;font-size:15px;line-height:20px;color:var(--mute)}
.fl-form{width:520px;max-width:100%;display:flex;flex-direction:column;gap:28px}
.fl-form .fld{padding-bottom:14px}
.fl-intro{display:flex;flex-direction:column;gap:16px}
.fl-chiplabel{align-self:flex-start;background:var(--panel);color:var(--mute);border-radius:100px;padding:10px 18px;font-size:14px;line-height:19px}
.fl-h1{font-size:56px;line-height:59px;font-weight:500;letter-spacing:-2.24px}
.fl-lead{font-size:15px;line-height:20px;color:var(--mute)}
.fl-row2{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.fl-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.fl-foot{font-size:13px;line-height:18px;color:var(--mute);text-align:center}
.fl-ok{background:var(--lime);border-radius:var(--r-sm);padding:14px 18px;font-size:14px}
.fl-form .check{align-items:center}

/* ---------- Визард заказа и итоги оплаты ---------- */
.fl-page{max-width:1512px;margin:0 auto;padding:24px 36px 36px;display:flex;flex-direction:column;gap:16px;min-height:100vh}
.fl-head{background:var(--panel);border-radius:var(--r-xl);padding:20px 36px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.fl-wsteps{display:flex;gap:2px;padding:6px;border-radius:100px;background:var(--card)}
.fl-wsteps .s{display:flex;align-items:center;gap:10px;padding:8px 18px 8px 8px;border-radius:100px;font-size:15px;line-height:20px;color:var(--mute)}
.fl-wsteps .s i{width:28px;height:28px;border-radius:50%;background:#fff;color:var(--ink);font-style:normal;font-size:13px;font-weight:500;display:inline-flex;align-items:center;justify-content:center}
.fl-wsteps .s.now{background:var(--lime);color:var(--ink)}
.fl-wsteps .s.done{color:var(--ink)}.fl-wsteps .s.done i{background:var(--ink);color:var(--lime)}
.fl-page>.flash{margin:0}

.fl-grid{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:20px;align-items:start}
.fl-col{display:flex;flex-direction:column;gap:16px;min-width:0}
.fl-block{background:var(--card2);border-radius:var(--r-xl);padding:40px;display:flex;flex-direction:column;gap:24px}
.fl-h2{font-size:30px;line-height:32px;font-weight:500;letter-spacing:-1.2px}
.fl-hint{font-size:13px;line-height:18px;color:var(--mute)}
.fl-text{font-size:14px;line-height:19px;color:var(--mute)}
.fl-half{max-width:448px}
.fl-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:8px;flex-wrap:wrap}

/* Выбранный шаблон */
.fl-tpl{background:var(--card2);border-radius:var(--r-xl);padding:24px;display:flex;align-items:center;gap:24px}
.fl-tpl img{width:200px;height:140px;border-radius:24px;object-fit:cover;flex:none}
.fl-tpl .txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.fl-tpl .name{font-size:36px;line-height:38px;font-weight:500;letter-spacing:-1.44px}

/* Пилюли-варианты (радио): категория, размер каталога, тип плательщика */
.fl-chips{display:flex;flex-wrap:wrap;gap:8px}
.fl-chip{position:relative;cursor:pointer}
.fl-chip input{position:absolute;opacity:0;width:1px;height:1px}
.fl-chip span{display:inline-block;padding:14px 22px;border-radius:100px;background:#fff;font-size:15px;line-height:20px;white-space:nowrap}
.fl-chip input:checked+span{background:var(--lime);font-weight:500}
.fl-chip input:focus-visible+span{outline:2px solid var(--ink);outline-offset:2px}
.fl-group{display:flex;flex-direction:column;gap:12px}
.fl-group>.lbl{font-size:13px;line-height:18px;color:var(--mute)}

/* Карточки-варианты: период и способ оплаты */
.fl-opts{display:flex;gap:12px}
.fl-opt{flex:1;min-width:0;display:flex;align-items:center;gap:16px;padding:24px;border-radius:var(--r-md);background:#fff;cursor:pointer;position:relative}
.fl-opt input{position:absolute;opacity:0;width:1px;height:1px}
.fl-opt .c{width:28px;height:28px;border-radius:50%;background:var(--panel);color:transparent;display:inline-flex;align-items:center;justify-content:center;flex:none}
.fl-opt .txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.fl-opt .t{font-size:17px;line-height:23px;font-weight:500}
.fl-opt .d{font-size:13px;line-height:18px;color:var(--mute)}
.fl-opt .sum{font-size:24px;line-height:25px;font-weight:500;letter-spacing:-.96px;white-space:nowrap}
.fl-opt:has(input:checked){background:var(--ink);color:#fff}
.fl-opt:has(input:checked) .c{background:var(--lime);color:var(--ink)}
.fl-opt:has(input:checked) .d{color:#B5B5B5}
.fl-opt:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:2px}
.fl-row3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.fl-pay:has(input[name=method][value=invoice]:checked) .fl-cardonly{display:none}

/* Плашка-пояснение с кружком */
.fl-note{display:flex;align-items:center;gap:12px;background:#fff;border-radius:var(--r-sm);padding:16px 20px;font-size:13px;line-height:18px}
.fl-note .c{width:32px;height:32px;border-radius:50%;background:var(--lime);display:inline-flex;align-items:center;justify-content:center;flex:none}
.fl-note .x{flex:1}

/* «Ваш заказ» — тёмная колонка */
.fl-sum{background:var(--ink);color:#fff;border-radius:var(--r-xl);padding:36px;display:flex;flex-direction:column;gap:20px;position:sticky;top:24px}
.fl-sum .r{display:flex;justify-content:space-between;align-items:baseline;gap:16px;border-bottom:1px solid #3D3D3D;padding-bottom:14px}
.fl-sum .r span:first-child{font-size:14px;line-height:19px;color:#A8A8A8}
.fl-sum .r span:last-child{font-size:15px;line-height:20px;text-align:right}
.fl-sum .tot{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;padding-top:8px;font-size:15px;line-height:20px}
.fl-sum .tot b{font-size:44px;line-height:46px;font-weight:500;letter-spacing:-1.76px;color:var(--lime);white-space:nowrap}
.fl-sum .fl-hint{color:#A8A8A8}
.fl-guar{display:flex;align-items:center;gap:10px;background:#353535;border-radius:var(--r-sm);padding:14px 18px;font-size:13px;line-height:18px}
.fl-guar .c{width:28px;height:28px;border-radius:50%;background:var(--lime);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;flex:none}

/* Итог оплаты: сообщение + детали */
.fl-res{flex:1;display:grid;grid-template-columns:minmax(0,1fr) 500px;gap:20px;min-height:600px}
.fl-msg{background:var(--card2);border-radius:var(--r-xl);padding:56px;display:flex;flex-direction:column;justify-content:space-between;gap:48px}
.fl-msg .top{display:flex;flex-direction:column;gap:28px}
.fl-status{display:flex;align-items:center;gap:14px}
.fl-status .c{width:64px;height:64px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:none;background:var(--lime);color:var(--ink)}
.fl-status .c.dark{background:var(--ink);color:#fff}.fl-status .c.white{background:#fff}
.fl-status .tag{background:#fff;color:var(--mute);font-weight:400;font-size:14px;line-height:19px;padding:10px 18px}
.fl-big{font-size:64px;line-height:67px;font-weight:500;letter-spacing:-2.56px}
.fl-big span{display:block;color:var(--mute)}
.fl-msg .desc{font-size:17px;line-height:26px;color:var(--mute);max-width:620px}
.fl-btns{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.fl-btns form{margin:0}
.fl-det{background:var(--ink);color:#fff;border-radius:var(--r-xl);padding:44px;display:flex;flex-direction:column;gap:24px}
.fl-det .r{display:flex;justify-content:space-between;align-items:baseline;gap:16px;border-bottom:1px solid #3D3D3D;padding-bottom:16px}
.fl-det .r span:first-child{font-size:14px;line-height:19px;color:#A8A8A8;flex:none}
.fl-det .r span:last-child{font-size:16px;line-height:22px;text-align:right}

/* ---------- Адаптив ---------- */
@media (max-width:1200px){
  .fl-photo{flex-basis:440px}
  .fl-grid,.fl-res{grid-template-columns:1fr}
  .fl-sum{position:static}
}
@media (max-width:900px){
  .fl-auth{flex-direction:column;padding:16px;gap:16px}
  .fl-shell{padding:16px}.fl-bar{padding:8px 8px 8px 20px}.fl-shell .fl-photo{height:auto;min-height:0}
  .fl-photo{position:relative;top:0;flex:none;height:auto;min-height:0;padding:24px;gap:40px;border-radius:var(--r-lg)}
  .fl-photo-title{font-size:40px;line-height:42px;letter-spacing:-1.6px}
  .fl-side{padding:8px 0}
  .fl-top{justify-content:space-between}
  .fl-h1{font-size:40px;line-height:44px;letter-spacing:-1.6px}
}
@media (max-width:700px){
  .fl-bar{padding:6px 6px 6px 14px}.fl-bar .s-head,.fl-bar .s-head-r{gap:8px}.fl-bar .s-head-r .btn{padding:12px 16px}
  .fl-page{padding:16px;gap:12px}
  .fl-actions{justify-content:center}
  .fl-head{padding:14px 16px;border-radius:var(--r-lg);flex-wrap:wrap}
  .fl-head .btn.top{padding:10px 16px;font-size:14px}
  .fl-wsteps{order:3;width:100%;justify-content:space-between}
  .fl-wsteps .s{padding:6px 12px 6px 6px;font-size:14px}
  .fl-wsteps .s:not(.now) span{display:none}
  .fl-block,.fl-msg,.fl-det,.fl-sum{padding:24px;border-radius:var(--r-lg)}
  .fl-tpl{flex-direction:column;align-items:stretch;border-radius:var(--r-lg)}
  .fl-tpl img{width:100%;height:180px}
  .fl-tpl .name{font-size:30px;line-height:32px}
  .fl-h2{font-size:24px;line-height:28px}
  .fl-row2,.fl-row3{grid-template-columns:1fr}
  .fl-opts{flex-direction:column}
  .fl-opt{padding:18px;gap:12px}.fl-opt .sum{font-size:20px}
  .fl-chip span{padding:11px 16px;font-size:14px}
  .fl-sum .tot b{font-size:34px;line-height:36px}
  .fl-big{font-size:38px;line-height:42px;letter-spacing:-1.5px}
  .fl-res{min-height:0}
  .fl-det .r{flex-direction:column;gap:4px}.fl-det .r span:last-child{text-align:left}
  .fl-nav .btn{flex:1 1 auto}
  .fl-photo-title{font-size:34px;line-height:36px}
  .fl-glass{padding:20px;font-size:16px;line-height:22px}
}
.fl-foot a{color:var(--ink)}.fl-foot a:hover{text-decoration:underline}
