
:root{
  --jr9-bg:#061f34;
  --jr9-bg2:#0a2a43;
  --jr9-line:#1c4a64;
  --jr9-text:#f6f8fa;
  --jr9-muted:#8fa6b5;
  --jr9-gold:#f5bd3d;
  --jr9-gold2:#f7d46e;
  --jr9-cyan:#19b9df;
  --jr9-green:#28c98a;
}
.jr9[hidden],.jr9[aria-hidden="true"]{display:none!important}
.jr9,.jr9 *{box-sizing:border-box}
.jr9{
  position:fixed;inset:0;z-index:2147483000;
  display:flex;align-items:center;justify-content:center;
  padding:18px;font-family:Inter,Arial,sans-serif;color:var(--jr9-text)
}
.jr9__backdrop{position:absolute;inset:0;background:rgba(2,12,24,.82);backdrop-filter:blur(10px)}
.jr9__dialog{
  position:relative;z-index:1;width:min(1100px,96vw);
  max-height:calc(100dvh - 36px);overflow:auto;
  border:1px solid #147795;border-radius:19px;background:var(--jr9-bg);
  box-shadow:0 30px 90px rgba(0,0,0,.58);scrollbar-width:thin
}
.jr9__close{
  position:absolute;z-index:30;right:16px;top:15px;width:40px;height:40px;
  border:1px solid #34586c;border-radius:10px;background:#123148;color:#fff;
  font-size:22px;cursor:pointer
}
.jr9__header{display:flex;align-items:center;padding:17px 64px 14px 20px;border-bottom:1px solid #173c52}
.jr9__brand{display:flex;align-items:center;gap:11px}
.jr9__brandicon{display:grid;place-items:center;width:40px;height:40px;border-radius:9px;background:#243c4d;color:var(--jr9-gold)}
.jr9__brand small{display:block;color:var(--jr9-gold);font-size:9px;font-weight:900;letter-spacing:.06em}
.jr9__brand h2{margin:2px 0 0;font-size:22px;line-height:1.05}
.jr9__progress{margin-left:auto;display:flex;align-items:center;gap:8px}
.jr9__progress span{display:grid;place-items:center;width:26px;height:26px;border:1px solid #315166;border-radius:50%;font-size:10px;color:#8ba2b2}
.jr9__progress span.is-active{background:var(--jr9-gold);border-color:var(--jr9-gold);color:#14283a;font-weight:900}
.jr9__progress i{width:30px;height:1px;background:#315166}
.jr9__content{display:grid;grid-template-columns:minmax(0,1.9fr) 300px;gap:16px;padding:16px 20px 18px}
.jr9__step+.jr9__step{margin-top:14px;padding-top:14px;border-top:1px solid #173c52}
.jr9__steptitle{display:flex;align-items:center;gap:9px;margin-bottom:10px}
.jr9__steptitle>b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--jr9-gold);color:#14283a;font-size:11px}
.jr9__steptitle strong{display:block;font-size:13px}
.jr9__steptitle small{display:block;margin-top:1px;color:var(--jr9-muted);font-size:8px}
.jr9__row{display:grid;gap:8px}
.jr9__row--top{grid-template-columns:1fr 1fr .95fr}
.jr9__row--room{grid-template-columns:1.4fr .9fr;margin-top:8px}
.jr9 label>span,.jr9__field>span{display:block;margin-bottom:5px;font-size:9px;font-weight:800;color:#e7eef3}
.jr9 input,.jr9 select,.jr9 textarea{
  width:100%;min-height:40px;border:1px solid #d9e4ea;border-radius:8px;
  background:#f5f8fa;color:#173047;padding:0 11px;font:inherit;font-size:11px;outline:0
}
.jr9 textarea{min-height:62px;padding-top:9px;resize:vertical}
.jr9 input:focus,.jr9 select:focus,.jr9 textarea:focus{border-color:var(--jr9-cyan);box-shadow:0 0 0 2px rgba(25,185,223,.15)}
.jr9__counter{display:grid;grid-template-columns:40px 1fr 40px;min-height:40px;border:1px solid #d9e4ea;border-radius:8px;background:#f5f8fa;color:#173047;overflow:hidden}
.jr9__counter button{border:0;background:#e8f1f5;color:#0a3b59;font-size:20px;font-weight:900;cursor:pointer}
.jr9__counter strong{display:grid;place-items:center;font-size:11px}
.jr9__estimate{display:flex;align-items:center;gap:10px;margin-top:10px;padding:10px 12px;border:1px solid #16425d;border-radius:9px;background:#0b2b43}
.jr9__estimate>span{display:grid;place-items:center;width:30px;height:30px;border-radius:7px;background:#243d4e;color:var(--jr9-gold)}
.jr9__estimate small,.jr9__estimate em{display:block;color:#8aa1b0;font-size:7px;font-style:normal}
.jr9__estimate strong{display:block;color:var(--jr9-gold);font-size:18px}
.jr9__next{display:none}
.jr9__step2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.jr9__contact{display:grid;gap:8px}
.jr9__phone{position:relative;display:grid;grid-template-columns:110px 1fr;gap:7px}
.jr9__country{display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;border:1px solid #d9e4ea;border-radius:8px;background:#f5f8fa;color:#173047;cursor:pointer}
.jr9__countries{position:absolute;z-index:70;left:0;top:45px;width:225px;padding:5px;border:1px solid #315166;border-radius:9px;background:#0b2b43;box-shadow:0 14px 35px rgba(0,0,0,.4)}
.jr9__countries[hidden]{display:none!important}
.jr9__countries button{display:grid;grid-template-columns:26px 1fr auto;gap:7px;align-items:center;width:100%;padding:8px;border:0;border-radius:6px;background:transparent;color:#fff;text-align:left;cursor:pointer}
.jr9__countries button:hover{background:#123b56}
.jr9-flag{display:inline-block;width:22px;height:14px;border-radius:2px;background-size:cover;background-position:center;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.jr9-flag--tr{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='20'%3E%3Crect width='30' height='20' fill='%23e30a17'/%3E%3Ccircle cx='12' cy='10' r='5.3' fill='white'/%3E%3Ccircle cx='13.6' cy='10' r='4.2' fill='%23e30a17'/%3E%3Cpath fill='white' d='M18.2 10l3.1-1.02-1.92 2.64v-3.26l1.92 2.64z'/%3E%3C/svg%3E")}
.jr9-flag--de{background-image:linear-gradient(#111 0 33%,#d00 33% 66%,#ffce00 66%)}
.jr9-flag--ru{background-image:linear-gradient(#fff 0 33%,#1655a8 33% 66%,#d52b1e 66%)}
.jr9-flag--fr{background-image:linear-gradient(90deg,#0055a4 0 33%,#fff 33% 66%,#ef4135 66%)}
.jr9-flag--sa{background:#006c35}
.jr9-flag--gb{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='20'%3E%3Crect width='30' height='20' fill='%23012169'/%3E%3Cpath d='M0 0L30 20M30 0L0 20' stroke='white' stroke-width='5'/%3E%3Cpath d='M0 0L30 20M30 0L0 20' stroke='%23c8102e' stroke-width='2'/%3E%3Cpath d='M15 0v20M0 10h30' stroke='white' stroke-width='6'/%3E%3Cpath d='M15 0v20M0 10h30' stroke='%23c8102e' stroke-width='3'/%3E%3C/svg%3E")}
.jr9__payment{padding:11px;border:1px solid #16425d;border-radius:9px;background:#0b2b43}
.jr9__paymenttitle strong{display:block;font-size:12px}
.jr9__paymenttitle small{color:#8199a9;font-size:7px}
.jr9__payment>button{display:grid;grid-template-columns:30px 1fr 18px;align-items:center;gap:8px;width:100%;min-height:58px;margin-top:7px;padding:8px;border:1px solid #234c65;border-radius:8px;background:#0d2f48;color:#fff;text-align:left;cursor:pointer}
.jr9__payment>button>span{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:#213c4f;color:var(--jr9-gold)}
.jr9__payment>button b{font-size:9px}
.jr9__payment>button small{display:block;margin-top:2px;color:#8199a9;font-size:7px}
.jr9__payment>button>i{display:none;width:18px;height:18px;border-radius:50%;background:var(--jr9-gold);color:#14283a;font-style:normal;text-align:center;line-height:18px;font-weight:900}
.jr9__payment>button.is-selected{border-color:var(--jr9-gold);background:#15384e}
.jr9__payment>button.is-selected>i{display:block}
.jr9__consent{display:flex!important;align-items:center;gap:6px;margin:9px 0;font-size:8px;color:#d1dce3}
.jr9__consent input{width:13px!important;min-height:13px!important;accent-color:var(--jr9-cyan)}
.jr9__alert[hidden]{display:none!important}
.jr9__alert{margin:7px 0;padding:8px;border-radius:7px;background:#862b36;color:#fff;font-size:9px}
.jr9__actions{display:flex;gap:7px}
.jr9__back{display:none}
.jr9__submit{flex:1;padding:11px;border:0;border-radius:8px;background:linear-gradient(90deg,#f0b22f,var(--jr9-gold2));color:#152331;font-size:10px;font-weight:900;cursor:pointer}
.jr9__note{text-align:center;color:#718899;font-size:7px}
.jr9__side{display:flex;flex-direction:column;gap:9px;align-self:start}
.jr9__summary,.jr9__detail{padding:11px;border:1px solid #20506b;border-radius:10px;background:#0a2a43}
.jr9__summarytitle,.jr9__detailhead{display:flex;gap:7px;align-items:center;margin-bottom:8px}
.jr9__summarytitle span,.jr9__detailhead>span{color:var(--jr9-gold)}
.jr9__summarytitle strong,.jr9__detailhead b{font-size:9px}
.jr9__detailhead small{display:block;color:#8199a9;font-size:7px}
.jr9__summary img{width:100%;height:130px;object-fit:cover;border-radius:7px}
.jr9__summary h3{margin:8px 0 2px;font-size:15px}
.jr9__summary>p{margin:0 0 7px;color:#8199a9;font-size:7px}
.jr9__summaryrows{padding:6px 0;border-top:1px solid #1a4058;border-bottom:1px solid #1a4058}
.jr9__summaryrows div{display:flex;justify-content:space-between;padding:3px 0;font-size:8px}
.jr9__summaryrows span{color:#8199a9}
.jr9__summarytotal{text-align:right;padding:7px 0}
.jr9__summarytotal small,.jr9__summarytotal em{display:block;color:#8199a9;font-size:7px;font-style:normal}
.jr9__summarytotal strong{color:var(--jr9-gold);font-size:19px}
.jr9__detail[hidden]{display:none!important}
.jr9__detail label{display:block;margin-top:6px}
.jr9__detail label span{display:block;margin-bottom:3px;color:#8199a9;font-size:7px}
.jr9__detail label strong{display:block;padding:7px;border:1px solid #1f4961;border-radius:6px;background:#102f46;font-size:8px}
.jr9__detail input{min-height:34px;font-size:9px}
.jr9__cardrow{display:grid;grid-template-columns:1fr .6fr;gap:6px}
.jr9__brands{display:flex;align-items:center;gap:6px;margin:7px 0}
.jr9__brands img{width:42px;height:22px;object-fit:contain;border-radius:4px;background:#fff}
.jr9__green{margin-top:7px;padding:7px;border:1px solid rgba(40,201,138,.18);border-radius:6px;background:rgba(40,201,138,.08);color:#a6e8cd;font-size:7px}
.jr9__trust{display:flex;justify-content:space-between;font-size:7px;color:#d2dde4}
.jr9__hp{position:absolute!important;left:-9999px!important}
.jr9-lock{overflow:hidden!important}
.jr9__mobilepay[hidden]{display:none!important}
.jr9__mobilepay{display:none}

/* SUCCESS */
.jr9__success[hidden]{display:none!important}
.jr9__dialog.is-success{width:min(500px,94vw);max-height:none;overflow:visible}
.jr9__dialog.is-success .jr9__content,.jr9__dialog.is-success .jr9__progress{display:none!important}
.jr9__success{text-align:center;padding:28px 26px 26px}
.jr9__successicon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 12px;border-radius:50%;background:var(--jr9-green);font-size:26px;font-weight:900}
.jr9__success>small{display:block;color:#70e0ad;font-size:8px;font-weight:900;letter-spacing:.08em}
.jr9__success h2{margin:8px 0 5px;font-size:25px}
.jr9__success>p{margin:0;color:#a7bbc8;font-size:10px}
.jr9__successcard,.jr9__successpay{width:min(330px,100%);margin:13px auto 0;padding:10px 12px;border:1px solid #20506b;border-radius:9px;background:#0a2a43}
.jr9__successcard span,.jr9__successpay span{display:block;color:#8199a9;font-size:8px}
.jr9__successcard strong{display:block;margin-top:4px;color:#4ee1a3;font-size:17px;letter-spacing:.03em}
.jr9__successpay b{display:block;margin-top:3px;color:#fff;font-size:10px}
.jr9__successmail{margin:12px auto 0!important;max-width:360px;line-height:1.45}
.jr9__successbadges{display:flex;justify-content:center;gap:12px;margin:14px 0;color:#d4e0e7;font-size:8px}
.jr9__successclose{min-width:145px;padding:10px 20px;border:1px solid #476379;border-radius:8px;background:#102d43;color:#fff;font-size:9px;font-weight:900;cursor:pointer}

@media (max-width:900px){
  .jr9{
    padding:10px;
    align-items:center;
    justify-content:center;
  }
  .jr9__dialog{
    width:min(430px,calc(100vw - 20px));
    height:auto;
    max-height:calc(100dvh - 20px);
    border:1px solid #147795;
    border-radius:16px;
    overflow:auto;
  }
  .jr9__header{
    position:sticky;top:0;z-index:20;
    padding:13px 50px 12px 13px;
    background:#061f34;
  }
  .jr9__brandicon{width:36px;height:36px}
  .jr9__brand small{display:none}
  .jr9__brand h2{font-size:17px}
  .jr9__close{right:10px;top:10px;width:34px;height:34px}
  .jr9__progress{
    position:static;
    margin-left:auto;
    padding:0;
    background:transparent;
    transform:none;
  }
  .jr9__progress span{width:24px;height:24px}
  .jr9__progress i{width:24px}
  .jr9__content{display:block;padding:14px}
  .jr9__side{display:none}
  .jr9__step{display:none!important}
  .jr9__step.is-active{display:block!important}
  .jr9__step+.jr9__step{margin:0;padding:0;border:0}
  .jr9__row--top,.jr9__row--room,.jr9__step2{grid-template-columns:1fr}
  .jr9__row{gap:9px}
  .jr9__row--room{margin-top:9px}
  .jr9__steptitle{margin-bottom:12px}
  .jr9__steptitle strong{font-size:13px}
  .jr9__steptitle small{font-size:8px}
  .jr9 label>span,.jr9__field>span{font-size:9px}
  .jr9 input,.jr9 select,.jr9 textarea{min-height:44px;font-size:12px}
  .jr9 textarea{min-height:70px}
  .jr9__counter{min-height:44px}
  .jr9__estimate{padding:11px 12px}
  .jr9__next{
    display:block;width:100%;margin-top:11px;padding:13px;
    border:0;border-radius:9px;background:linear-gradient(90deg,#f0b22f,var(--jr9-gold2));
    color:#172431;font-size:10px;font-weight:900;cursor:pointer
  }
  .jr9__contact{gap:9px}
  .jr9__phone{grid-template-columns:112px 1fr}
  .jr9__payment{margin-top:2px;padding:11px}
  .jr9__payment>button{min-height:60px}
  .jr9__payment>button b{font-size:10px}
  .jr9__payment>button small{font-size:7px}
  .jr9__consent{font-size:8px;line-height:1.35}
  .jr9__back{display:block;padding:12px;border:1px solid #315166;border-radius:8px;background:#123148;color:#fff;font-size:9px;font-weight:900}
  .jr9__actions{display:grid;grid-template-columns:88px 1fr}
  .jr9__submit{padding:12px}

  /* Mobile payment popup: centered and input-friendly */
  .jr9__mobilepay{
    display:flex;position:fixed;inset:0;z-index:2147483600;
    align-items:center;justify-content:center;padding:14px
  }
  .jr9__mobilepaybackdrop{position:absolute;inset:0;background:rgba(2,12,24,.78);backdrop-filter:blur(8px)}
  .jr9__sheet{
    position:relative;z-index:2;width:min(390px,calc(100vw - 28px));
    max-height:calc(100dvh - 28px);overflow:auto;
    padding:16px;border:1px solid var(--jr9-gold);border-radius:15px;
    background:#08243b;box-shadow:0 22px 65px rgba(0,0,0,.55)
  }
  .jr9__sheetclose{
    position:absolute;right:10px;top:10px;width:32px;height:32px;
    border:1px solid #476379;border-radius:8px;background:#102d43;color:#fff;
    font-size:18px;cursor:pointer
  }
  .jr9__sheettitle{display:flex;align-items:center;gap:8px;padding-right:42px;margin-bottom:12px}
  .jr9__sheettitle span{color:var(--jr9-gold);font-size:16px}
  .jr9__sheettitle b{font-size:13px}
  .jr9__sheetok{display:grid;place-items:center;width:50px;height:50px;margin:14px auto;border-radius:50%;background:rgba(40,201,138,.16);color:#4de1a5;font-size:26px;font-weight:900}
  .jr9__sheet p{text-align:center;color:#e1e9ee;font-size:11px;line-height:1.45}
  .jr9__sheet>div>small{display:block;text-align:center;color:#8ca3b2;font-size:8px;line-height:1.4}
  .jr9__sheet label{display:block;margin-top:9px}
  .jr9__sheet label span{display:block;margin-bottom:5px;color:#dbe6ed;font-size:9px;font-weight:800}
  .jr9__sheet label strong{display:block;padding:9px;border:1px solid #214b63;border-radius:7px;background:#102f46;font-size:9px}
  .jr9__sheet input{
    display:block!important;visibility:visible!important;pointer-events:auto!important;
    width:100%;min-height:44px;padding:0 11px;border:1px solid #d9e4ea;border-radius:8px;
    background:#f5f8fa;color:#173047;font-size:12px;opacity:1!important
  }
  .jr9__sheet input:focus{border-color:var(--jr9-cyan);box-shadow:0 0 0 2px rgba(25,185,223,.16)}
  .jr9__sheet .jr9__cardrow{display:grid;grid-template-columns:1fr .62fr;gap:8px}
  .jr9__sheet .jr9__brands{gap:7px;margin:9px 0 11px}
  .jr9__sheet .jr9__brands img{width:48px;height:24px;background:#fff}
  .jr9__sheetaction{
    display:block;width:100%;margin-top:12px;padding:12px;border:0;border-radius:9px;
    background:linear-gradient(90deg,#f0b22f,var(--jr9-gold2));color:#172431;
    font-size:9px;font-weight:900;cursor:pointer
  }

  /* Success mobile card */
  .jr9__dialog.is-success{
    width:min(420px,calc(100vw - 20px));
    max-height:calc(100dvh - 20px);
    overflow:auto
  }
  .jr9__dialog.is-success .jr9__header{position:sticky}
  .jr9__success{padding:26px 18px 22px}
  .jr9__successicon{width:56px;height:56px;font-size:27px}
  .jr9__success h2{font-size:24px}
  .jr9__success>p{font-size:10px}
  .jr9__successbadges{display:grid;gap:7px;margin:15px auto;width:max-content;text-align:left;font-size:9px}
  .jr9__successclose{width:160px}
}

@media (max-width:380px){
  .jr9{padding:6px}
  .jr9__dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}
  .jr9__header{padding-left:10px}
  .jr9__brand h2{font-size:15px}
  .jr9__content{padding:11px}
  .jr9__phone{grid-template-columns:104px 1fr}
  .jr9__sheet{width:calc(100vw - 18px);padding:14px}
}
