*,::before,::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:#FFFFFF;color:#100D2C;font-family:Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
[hidden]{display:none!important}
.btn-reset{all:unset;box-sizing:border-box;cursor:pointer;-webkit-tap-highlight-color:transparent}
.btn-reset:focus-visible,[data-x=open]:focus-visible,a:focus-visible,.f-tile:focus-visible,.f-chip:focus-visible{outline:2px solid #5B4CF5;outline-offset:2px}
[data-x=open],[data-x=faq] .btn-reset,[data-x=wa],[data-x=close]{cursor:pointer;-webkit-tap-highlight-color:transparent}
[data-x=open]{transition:filter .15s,transform .15s}
[data-x=open]:hover{filter:brightness(1.06)}
[data-x=open]:active{transform:scale(.98)}
[data-x=faq] .btn-reset{width:100%}

/* Зона нажатия ≥44px: вопрос FAQ кликается по всей шапке карточки, внешние ссылки — с запасом по высоте */
[data-x=faq] .btn-reset{position:relative}
[data-x=faq] .btn-reset::before{content:"";position:absolute;inset:-16px -16px -8px}
[data-x=faq] .btn-reset[aria-expanded=false]::before{bottom:-16px}
.d [data-x=faq] .btn-reset::before{left:0;right:0}
a[target=_blank]{position:relative}
a[target=_blank]::after{content:"";position:absolute;inset:-12px -8px}

/* Две вёрстки из Pencil: мобильная (390) и десктопная (1440) */
.m,.sticky{--g:max(20px,calc((100% - 560px)/2))}
.d{--g:max(120px,calc((100% - 1200px)/2));display:none}
@media (min-width:1100px){
  .m,.sticky{display:none!important}
  .d{display:block}
}
@media (min-width:1100px) and (max-width:1439.98px){
  .d{width:1440px;zoom:var(--z,.85)}
}
section{position:relative}
@media (max-width:374.98px){[data-x=facts]{zoom:.92}}
@media (max-width:339.98px){[data-x=facts]{zoom:.82}}
section[id]{scroll-margin-top:0}

/* Липкая панель (РS) */
.sticky{position:fixed;left:0;right:0;bottom:0;z-index:40;height:auto!important;min-height:calc(72px + env(safe-area-inset-bottom));padding-top:8px!important;padding-bottom:calc(8px + env(safe-area-inset-bottom))!important;transform:translateY(110%);transition:transform .25s ease;background:#fff}
.sticky.on{transform:none}

/* Выбор страны: нативный select поверх макетного поля */
[data-x=visa-sel],.f-select{position:relative;cursor:pointer}
.native-sel{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px;border:0;-webkit-appearance:none;appearance:none}
.flag{display:block;width:100%;height:100%;object-fit:cover}

/* ---------- Форма заявки ---------- */
.f-prog{display:flex;flex-direction:column;gap:8px;width:100%}
.f-bar{display:flex;gap:4px;width:100%}
.f-bar i{flex:1;height:4px;border-radius:2px;background:#E2DEFF}
.f-bar i.on{background:#5B4CF5}
.f-stepn{font:500 14px/20px Inter,system-ui,sans-serif;color:#4B4966}
.f-body{display:flex;flex-direction:column;gap:32px;width:100%}
.f-q{display:flex;flex-direction:column;gap:12px;width:100%}
.f-h{font:600 18px/24px "Inter Tight",system-ui,sans-serif;letter-spacing:-.2px;color:#100D2C;margin:0}
.f-tiles{display:flex;flex-direction:column;gap:8px;width:100%}
.f-tile{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;padding:16px;border-radius:14px;background:#fff;outline:1px solid #E8E7F2;outline-offset:-.5px;font:500 16px/25px Inter,system-ui,sans-serif;color:#100D2C;cursor:pointer;-webkit-tap-highlight-color:transparent}
.f-tile span{flex:1}
.f-tile[aria-checked=true]{outline:1.5px solid #5B4CF5;outline-offset:-.75px;font-weight:600}
.f-tick{display:none;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;background:#5B4CF5;flex:none}
.f-tile[aria-checked=true] .f-tick{display:flex}
.f-tick svg{width:14px;height:14px}
.f-chips{display:flex;flex-wrap:wrap;gap:8px}
.f-chip{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:6px;height:40px;padding:0 14px;border-radius:999px;background:#fff;outline:1px solid #E8E7F2;outline-offset:-.5px;font:500 14px/20px Inter,system-ui,sans-serif;color:#100D2C;cursor:pointer;-webkit-tap-highlight-color:transparent}
.f-chip svg{display:none}
.f-chip[aria-checked=true]{background:#EEEBFF;outline:1.5px solid #5B4CF5;outline-offset:-.75px}
.f-select{display:flex;align-items:center;gap:10px;height:52px;padding:0 14px;border-radius:14px;background:#F7F7FC;outline:1px solid #E8E7F2;outline-offset:-.5px;width:100%}
.f-flag{width:24px;height:24px;border-radius:999px;overflow:hidden;outline:1px solid #E8E7F2;outline-offset:-.5px;flex:none;background:#E8E7F2}
.f-select .v{flex:1;font:500 16px/23px Inter,system-ui,sans-serif;color:#100D2C;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.f-select .v.ph{color:#8E8CA6;font-weight:400}
.f-select>svg{width:20px;height:20px;flex:none}
.f-info{display:flex;gap:12px;padding:16px;border-radius:16px;background:#EEEBFF;font:400 16px/25px Inter,system-ui,sans-serif;color:#100D2C}
.f-info svg{width:20px;height:20px;flex:none;margin-top:2px}
.f-fields{display:flex;flex-direction:column;gap:20px;width:100%}
.f-field{display:flex;flex-direction:column;gap:6px;width:100%}
.f-lab{display:flex;align-items:flex-end;gap:8px;font:600 14px/20px Inter,system-ui,sans-serif;color:#100D2C}
.f-lab span{flex:1}
.f-lab em{font-style:normal;font-weight:400;color:#8E8CA6}
.f-row{display:flex;gap:8px;width:100%}
.f-in{all:unset;box-sizing:border-box;display:block;flex:none;width:100%;min-width:0;height:52px;padding:0 14px;border-radius:14px;background:#F7F7FC;outline:1px solid #E8E7F2;outline-offset:-.5px;font:400 16px/23px Inter,system-ui,sans-serif;color:#100D2C}
.f-row .f-in{flex:1;width:auto}
.f-in:focus{outline:1.5px solid #5B4CF5;outline-offset:-.75px;background:#fff}
.f-in.bad,.f-code.bad{outline:1.5px solid #E5484D;outline-offset:-.75px}
.f-in::placeholder{color:#8E8CA6;opacity:1}
.f-code{width:auto;flex:none;gap:6px;padding:0 10px 0 12px}
.f-code .v{flex:none}
.f-code>svg{width:18px;height:18px}
.f-hint{font:400 14px/20px Inter,system-ui,sans-serif;color:#4B4966}
.f-link{all:unset;cursor:pointer;font:500 14px/20px Inter,system-ui,sans-serif;color:#5B4CF5}
.f-consent{font:400 14px/20px Inter,system-ui,sans-serif;color:#4B4966;margin:0}
.f-consent a{text-decoration:underline;text-underline-offset:2px}
.f-check{display:flex;align-items:center;gap:10px;font:400 14px/20px Inter,system-ui,sans-serif;color:#100D2C;cursor:pointer}
.f-check input{appearance:none;-webkit-appearance:none;margin:0;width:20px;height:20px;border-radius:6px;background:#fff;outline:1.5px solid #E8E7F2;outline-offset:-.75px;flex:none;cursor:pointer;display:grid;place-content:center}
.f-check input:checked{background:#5B4CF5;outline-color:#5B4CF5}
.f-check input:checked::after{content:"";width:10px;height:6px;border:2px solid #fff;border-top:0;border-right:0;transform:translateY(-1px) rotate(-45deg)}
.f-btn{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:8px;height:52px;padding:0 32px;width:100%;border-radius:999px;background:#5B4CF5;box-shadow:0 2px 8px #5B4CF54D;font:600 16px/23px Inter,system-ui,sans-serif;color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:filter .15s}
.f-btn:hover{filter:brightness(1.06)}
.f-btn svg{width:20px;height:20px}
.f-btn[aria-disabled=true]{background:#E2DEFF;color:#8E8CA6;box-shadow:none;cursor:default;filter:none}
.f-btn.busy{opacity:.7;pointer-events:none}
.f-back{all:unset;display:flex;align-items:center;gap:8px;height:56px;font:500 17px/20.59px Inter,system-ui,sans-serif;color:#4B4966;cursor:pointer}
.f-back svg{width:20px;height:20px}
.f-cap{flex:1;font:400 14px/20px Inter,system-ui,sans-serif;color:#4B4966}
.f-foot-d{display:flex;align-items:center;gap:24px;width:100%}
.fi{width:100%}
.fi.fv-m{display:flex;flex-direction:column;gap:24px}
.fi.fv-m .f-btn svg{display:block}

/* Десктопные размеры (ДF1 / Д09) */
.fv-d .f-q{gap:16px}
.fv-d .f-h{font-family:Inter,system-ui,sans-serif;font-size:19px;line-height:27px;letter-spacing:0}
.fv-d .f-stepn{line-height:16.95px}
.fv-d .f-tiles{display:flex;flex-direction:column;gap:12px}
.fv-d .f-tile{min-height:56px;padding:0 20px;font-size:17px;line-height:20.59px;font-weight:400}
.fv-d .f-tile[aria-checked=true]{font-weight:500}
.fv-d .f-chips{gap:10px}
.fv-d .f-chip{height:44px;padding:0 18px;gap:8px;font-size:15px;line-height:18.16px;font-weight:400}
.fv-d .f-chip[aria-checked=true]{font-weight:500}
.fv-d .f-select{padding:0 16px}
.fv-d .f-select .v{font-size:17px;line-height:20.59px;font-weight:400}
.fv-d .f-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px 16px}
.fv-d .f-fields .wide{grid-column:1/-1;order:3}
.fv-d .f-btn{height:56px;width:auto;gap:10px;font-size:17px;line-height:20.59px}
.fi.fv-d .f-h{font-family:"Inter Tight",system-ui,sans-serif;font-size:21px;line-height:27px;letter-spacing:-.2px}
.fi.fv-d .f-tile{min-height:64px;line-height:24px}
.fi.fv-d .f-prog{margin-bottom:32px}
.fi.fv-d .f-foot-d{margin-top:32px}

/* Окно формы: телефон — полноэкранный лист (РF1–РF4), десктоп — модальное окно 640 (ДF1) */
.dlg-wrap{position:fixed;inset:0;z-index:60}
.dlg:focus{outline:none}
.dlg{position:absolute;inset:0;display:flex;flex-direction:column;background:#fff;overflow:hidden}
.dlg-head{display:flex;align-items:center;justify-content:space-between;height:56px;padding:0 20px;border-bottom:1px solid #E8E7F2;flex:none}
.dlg-head .t{font:600 16px/23px Inter,system-ui,sans-serif;color:#100D2C}
.dlg-head .btn-reset,.dlg-head .slot{width:24px;height:24px;display:flex}
.dlg-head svg{width:24px;height:24px}
.dlg .f-prog{padding:16px 20px 0}
.dlg-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:24px 20px}
.dlg-foot{flex:none;display:flex;flex-direction:column;gap:12px;padding:12px 20px calc(24px + env(safe-area-inset-bottom));border-top:1px solid #E8E7F2;background:#fff}
.dlg-screen{flex:1;overflow-y:auto;display:flex}
body.lock{overflow:hidden}
@media (min-width:1100px){
  .dlg-wrap{background:rgba(14,11,43,.6);display:flex;align-items:center;justify-content:center;overflow-y:auto;padding:24px}
  .dlg{position:relative;inset:auto;width:640px;max-height:calc((100vh - 48px)/var(--z,1));border-radius:24px;padding:40px;gap:24px;box-shadow:0 16px 48px #100D2C29;zoom:var(--z,1);overflow:visible}
  .dlg-head{height:auto;padding:0;border:0}
  .dlg-head .t{font-family:"Inter Tight",system-ui,sans-serif;font-size:21px;line-height:27px;letter-spacing:-.2px}
  .dlg-head .slot{display:none}
  .dlg .f-prog{padding:0}
  .dlg-body{padding:8px 0 0;overflow-y:auto}
  .dlg-foot{flex-direction:row;align-items:center;justify-content:space-between;gap:24px;margin-top:8px;padding:24px 0 0;border-top:0;box-shadow:inset 0 1px 0 #E8E7F2}
  .dlg-foot .f-consent-wrap{display:flex;flex-direction:column;gap:12px;flex:1}
  .dlg-screen{display:block}
  .dlg.ok{display:flex;padding:40px;gap:24px}
  .dlg .x-abs{position:absolute;top:40px;right:40px}
}

/* Фото крупно */
[data-x=photo]{cursor:zoom-in;transition:filter .15s}
[data-x=photo]:hover{filter:brightness(1.05)}
[data-x=photo]:focus-visible{outline:2px solid #5B4CF5;outline-offset:2px}
.lb{position:fixed;inset:0;z-index:80;background:rgba(14,11,43,.92);display:flex;align-items:center;justify-content:center;padding:56px 12px}
.lb-img{max-width:min(100%,1200px);max-height:100%;object-fit:contain;border-radius:12px;user-select:none}
.lb .btn-reset{position:absolute;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:999px;background:rgba(255,255,255,.12)}
.lb .btn-reset svg{width:22px;height:22px}
.lb-x{top:12px;right:12px}
.lb-p{left:12px;top:50%;transform:translateY(-50%)}
.lb-n{right:12px;top:50%;transform:translateY(-50%)}
.lb-c{position:absolute;bottom:16px;left:0;right:0;text-align:center;font:500 14px/20px Inter,system-ui,sans-serif;color:#fff}
@media (max-width:640px){.lb-p,.lb-n{top:auto;bottom:8px;transform:none}}
