html,body{
    margin:0;
    padding:0;
    background:#3a3436;
    /* Prevent the absolutely-positioned 1194px stage from expanding
       the document width and triggering the mobile "zoomed-out" bug. */
    overflow:hidden;
    width:100%;
    max-width:100%;
  }
  *{box-sizing:border-box; font-family:'Segoe UI', Arial, sans-serif;}

  /* The viewport div owns the document height (set by JS).
     It clips the stage so nothing bleeds outside the screen edges. */
  #viewport{
    position:relative;
    width:100%;
    overflow:hidden;
  }

  /* Fixed-size design canvas — matches the screenshot's native 1194×2048 px,
     then scaled uniformly to fit the real device width via JS.
     position:absolute removes it from document flow so the document width
     is determined by #viewport (100 vw), not by the 1194 px stage. */
  #stage{
    position:absolute;
    top:0;
    left:0;
    width:1194px;
    height:2048px;
    transform-origin: top left;
    background-color:#5b5153;
    background-image: url("bg.jpeg");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
  }

  /* ---------- header ---------- */
  header{
    position:absolute;
    top:0; left:0;
    width:1194px;
    height:62px;
    background:transparent;
    display:flex;
    align-items:center;
    padding: 0 28px;
    color:#fff;
    z-index:100;
  }
  .logo-img{
    height:34px;
    width:auto;
    margin-right:95px;
    display:block;
  }
  .logo{
    display:flex;
    align-items:center;
    gap:9px;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight:300;
    font-size:30px;
    color:#fff;
    letter-spacing:1px;
    white-space:nowrap;
    margin-right:95px;
  }
  .logo .dot{
    width:7px;height:7px;border-radius:50%;
    background:#2fbf78;
    box-shadow: 0 0 6px 1px rgba(47,191,120,.8);
    flex-shrink:0;
  }
  .logo .word{ letter-spacing:9px; }
  nav{
    display:flex;
    align-items:center;
    gap:40px;
    flex:1;
  }
  nav a{
    color:#d8d5d5;
    text-decoration:none;
    font-size:13px;
    letter-spacing:1px;
    text-transform:uppercase;
    display:flex;
    align-items:center;
    gap:4px;
    white-space:nowrap;
    cursor:pointer;
    position:relative;
  }
  .nav-item{
    color:#d8d5d5;
    font-size:13px;
    letter-spacing:1px;
    text-transform:uppercase;
    display:flex;
    align-items:center;
    gap:4px;
    white-space:nowrap;
    cursor:pointer;
    position:relative;
  }
  .right-controls{
    display:flex;
    align-items:center;
    gap:16px;
    font-size:13px;
    white-space:nowrap;
  }
  .lang{ color:#a8a4a4; }
  .lang.active{ color:#2fbf78; font-weight:600; }
  .login-btn{ color:#fff; }

  /* ---------- services dropdown ---------- */
  .services-menu{
    position:absolute;
    top:56px;
    left:0;
    width:340px;
    background:#fff;
    border-radius:2px;
    box-shadow:0 18px 40px rgba(0,0,0,0.35);
    padding:18px 0;
    z-index:80;
  }
  .services-menu.hidden{ display:none; }
  .services-menu a{
    display:block;
    color:#2c7fc1;
    text-decoration:none;
    text-transform:none;
    letter-spacing:0;
    font-size:16px;
    padding:12px 26px;
    line-height:1.35;
  }
  .services-menu a:hover{ background:#f4f7fb; }

  /* ---------- card ---------- */
  .card{
    position:absolute;
    left:76px;
    top:171px;
    width:1042px;
    height:327px;
    background:#eaeeda;
    border-radius:2px;
  }
  .card-inner{
    padding: 44px 40px;
  }
  .card h1{
    color:#2f8f8a;
    font-weight:500;
    font-size:26px;
    margin:0 0 16px;
  }
  .card p{
    color:#2f8f8a;
    font-size:20px;
    margin:0 0 32px;
  }
  .buttons{
    display:flex;
    gap:34px;
  }
  .buttons button{
    flex:1;
    background: linear-gradient(180deg,#1fca7c,#0aa85e);
    color:#fff;
    border:none;
    height:50px;
    padding: 0 20px;
    font-size:15px;
    font-weight:600;
    border-radius:2px;
    cursor:pointer;
    text-align:left;
  }

  /* ---------- emblem (persistent help icon) ---------- */
  .emblem{
    position:fixed;
    right:60px;
    top:230px;
    width:56px;height:56px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,0.28);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:50;
  }
  .emblem svg{ width:30px; height:30px; opacity:0.55; }

  /* ---------- pages ---------- */
  .page{ position:absolute; left:0; top:0; width:1194px; }
  .page.hidden{ display:none; }

  /* ---------- certificate / information page ---------- */
  .info-box{
    position:absolute;
    left:56px;
    top:157px;
    width:1066px;
    min-height:435px;
    background:rgba(120,120,120,0.55);
    border:1px dashed rgba(255,255,255,0.6);
    padding:38px 44px;
    color:#fff;
  }
  .info-box h2{
    margin:0 0 18px;
    font-size:26px;
    font-weight:700;
  }
  .info-box p{
    margin:0;
    font-size:19px;
    line-height:1.55;
    font-weight:400;
  }

  .field-label{
    position:absolute;
    left:364px;
    color:#d7d3d3;
    font-size:15px;
  }
  .ref-label{ top:658px; }
  .ref-input{
    position:absolute;
    left:364px;
    top:683px;
    width:450px;
    height:45px;
    background:#2f333e;
    border:1px solid #454a58;
    border-radius:2px;
    color:#fff;
    font-size:15px;
    padding:0 14px;
  }
  .ref-input:focus{ outline:2px solid #2fbf78; }

  .captcha-img{
    position:absolute;
    left:364px;
    top:772px;
    width:192px;
    height:62px;
    background:#f2f0ea;
    border-radius:2px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
  }
  .captcha-img span{
    font-family: 'Comic Sans MS', cursive;
    font-size:26px;
    font-weight:700;
    color:#2b2d63;
    letter-spacing:2px;
    display:inline-block;
    transform: skewX(-8deg) rotate(-3deg);
    position:relative;
  }
  .captcha-img::after{
    content:"";
    position:absolute;
    left:8px; right:8px; top:50%;
    height:2px;
    background: repeating-linear-gradient(90deg,#2b2d63 0 8px, transparent 8px 14px);
    transform: rotate(-4deg);
  }
  .refresh-icon{
    position:absolute;
    left:566px;
    top:793px;
    width:22px;
    height:22px;
    cursor:pointer;
  }
  .captcha-input{
    position:absolute;
    left:610px;
    top:772px;
    width:165px;
    height:62px;
    background:#2f333e;
    border:1px solid #454a58;
    border-radius:2px;
    color:#fff;
    font-size:16px;
    padding:0 14px;
  }
  .captcha-input:focus{ outline:2px solid #2fbf78; }
  .captcha-input.invalid{ border:2px solid #e05a4e; outline:none; }

  .next-btn{
    position:absolute;
    left:517px;
    top:896px;
    width:146px;
    height:47px;
    background:#0a2c1c;
    border:1px solid #1f4a34;
    color:#3fcf8c;
    font-weight:700;
    font-size:14px;
    letter-spacing:1px;
    border-radius:2px;
    cursor:pointer;
  }
  .next-btn:hover{ background:#0f3a24; }
  .next-btn.disabled{
    background:#2a2a2a;
    border-color:#3a3a3a;
    color:#7a7a7a;
    cursor:not-allowed;
    pointer-events:none;
  }

  .result-msg{
    position:absolute;
    left:517px;
    top:958px;
    font-size:18px;
    font-weight:700;
    letter-spacing:.5px;
  }
  .result-msg.failed{ color:#e05a4e; }

  /* ---------- page: apply for e-visa (multi-step form intro) ---------- */
  #page-apply{ padding: 100px 40px 80px; }
  .apply-title{
    text-align:center;
    color:#fff;
    font-size:38px;
    font-weight:800;
    letter-spacing:4px;
    margin:0 0 40px;
  }
  .stepper{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:0;
    margin:0 auto 40px;
    max-width:820px;
    position:relative;
  }
  .stepper::before{
    content:"";
    position:absolute;
    left:20px; right:20px; top:20px;
    border-top:2px dotted rgba(255,255,255,0.5);
    z-index:0;
  }
  .step-circle{
    position:relative;
    z-index:1;
    width:40px;height:40px;
    border-radius:50%;
    background:#171a2c;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    font-weight:600;
    flex:0 0 40px;
  }
  .stepper .steps-row{
    display:flex;
    justify-content:space-between;
    width:100%;
  }
  .step-circle.active{
    background:#171a2c;
    border:2px solid #2fbf78;
    color:#2fbf78;
  }
  .apply-subtitle{
    text-align:center;
    color:#e6e3e3;
    font-size:15px;
    font-weight:700;
    letter-spacing:2px;
    text-transform:uppercase;
    margin:0 0 34px;
  }
  .apply-form{
    width:410px;
    margin:0 auto;
    display:flex;
    flex-direction:column;
    gap:20px;
  }
  .apply-form.gap-before{ margin-top:22px; }
  .select-box{
    position:relative;
    background:#2f333e;
    border:1px solid #454a58;
    border-radius:2px;
    height:46px;
    display:flex;
    align-items:center;
    padding:0 14px;
    color:#c9c6c6;
    font-size:14px;
  }
  .select-box::after{
    content:"⌄";
    position:absolute;
    right:14px;
    color:#8a8f9c;
  }
  .apply-captcha-row{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:6px;
  }
  .apply-captcha-row .captcha-img,
  .apply-captcha-row .captcha-input{
    position:static;
  }
  .apply-agree{
    display:flex;
    align-items:center;
    gap:10px;
    color:#d7d3d3;
    font-size:14px;
    margin-top:6px;
  }
  .apply-agree input{ width:16px; height:16px; }
  .apply-form .next-btn{
    position:static;
    align-self:center;
    margin-top:14px;
    width:160px;
  }

  /* ---------- page: disabled info form (visa transfer / apply info variants) ---------- */
  .info-page{ }
  .info-page .ref-block{
    margin-top:0;
  }

  /* ---------- loading overlay ---------- */
  .overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.35);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:200;
  }
  .overlay.hidden{ display:none; }
  .loading-dots{
    display:flex;
    gap:14px;
  }
  .loading-dots span{
    width:18px;
    height:18px;
    border-radius:50%;
    background:#3fcf8c;
    animation: dot-bounce 1s infinite ease-in-out;
  }
  .loading-dots span:nth-child(2){ animation-delay: .15s; }
  .loading-dots span:nth-child(3){ animation-delay: .3s; }
  @keyframes dot-bounce{
    0%, 80%, 100% { transform: scale(0.6); opacity:.5; }
    40% { transform: scale(1); opacity:1; }
  }

  /* ---------- notification modal ---------- */
  /* ---------- image preview lightbox (Print / Preview) ---------- */
  .image-modal{
    position:relative;
    max-width:90vw;
    max-height:90vh;
  }
  .image-modal img{
    max-width:90vw;
    max-height:90vh;
    display:block;
    border-radius:2px;
    box-shadow:0 20px 60px rgba(0,0,0,0.5);
  }
  .image-modal #image-modal-close{
    position:absolute;
    top:-16px; right:-16px;
    width:34px;height:34px;
    border-radius:50%;
    background:#0a2c1c;
    border:1px solid #1f4a34;
    color:#3fcf8c;
    font-size:18px;
    cursor:pointer;
  }

  .modal{
    width:700px;
    max-width:90vw;
    background:#fff;
    border-radius:2px;
    overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,0.4);
    font-family:'Segoe UI', Arial, sans-serif;
  }
  .modal-header{
    background:#dd6b64;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 22px;
    font-size:19px;
  }
  .modal-header button{
    background:none;
    border:none;
    color:#fff;
    font-size:20px;
    cursor:pointer;
    line-height:1;
  }
  .modal-body{
    padding:22px;
    color:#1a1a1a;
    font-size:15px;
    line-height:1.6;
    min-height:110px;
  }
  .modal-footer{
    background:#dadada;
    padding:12px 20px;
    display:flex;
    justify-content:flex-end;
  }
  .modal-footer button{
    background:#7a7a7a;
    color:#fff;
    border:none;
    padding:9px 26px;
    border-radius:2px;
    cursor:pointer;
    font-size:14px;
  }
  .modal-footer button:hover{ background:#6a6a6a; }

  /* ---------- shared content-page heading ---------- */
  .content-page{ padding: 130px 48px 90px; color:#fff; }
  .content-title{
    font-size:34px;
    font-weight:800;
    letter-spacing:3px;
    margin:0 0 30px;
  }

  /* ---------- page: information ---------- */
  .info-tabs{
    display:flex;
    margin-bottom:34px;
  }
  .info-tab{
    flex:1;
    background:#171a2c;
    color:#fff;
    text-align:center;
    font-size:13px;
    font-weight:600;
    letter-spacing:.5px;
    padding:16px 10px;
    line-height:1.35;
    cursor:default;
  }
  .info-tab.active{ background:#d8d6d1; color:#1a1a1a; }
  .info-text{
    max-width:1080px;
    font-size:18px;
    line-height:1.55;
    margin:0 0 26px;
  }
  .info-select{
    width:420px;
  }

  /* ---------- page: contact us ---------- */
  .contact-grid{
    display:flex;
    gap:70px;
    align-items:flex-start;
  }
  .contact-left{ width:420px; }
  .contact-row{ display:flex; gap:14px; margin-bottom:14px; font-size:15px; }
  .contact-row .clabel{ font-weight:700; width:90px; flex-shrink:0; }
  .contact-row a{ color:#fff; text-decoration:underline; }
  .contact-row div{ line-height:1.5; }
  .contact-right{ flex:1; }
  .contact-fields-row{ display:flex; gap:20px; margin-bottom:20px; }
  .contact-input{
    flex:1;
    background:#2f333e;
    border:1px solid #454a58;
    border-radius:2px;
    color:#fff;
    font-size:15px;
    padding:0 14px;
    height:45px;
  }
  .contact-input::placeholder{ color:#9a9a9a; }
  .contact-textarea{
    width:100%;
    background:#2f333e;
    border:1px solid #454a58;
    border-radius:2px;
    color:#fff;
    font-size:15px;
    padding:14px;
    height:110px;
    resize:none;
    margin-bottom:20px;
    font-family:inherit;
  }
  .contact-textarea::placeholder{ color:#9a9a9a; }
  .contact-captcha-row{ display:flex; align-items:center; gap:14px; }
  .contact-captcha-row .captcha-img,
  .contact-captcha-row .captcha-input,
  .contact-captcha-row .refresh-icon{ position:static; }
  .send-btn{
    background:#0a2c1c;
    border:1px solid #1f4a34;
    color:#3fcf8c;
    font-weight:700;
    font-size:14px;
    letter-spacing:1px;
    border-radius:2px;
    padding:0 30px;
    height:62px;
    cursor:pointer;
    margin-left:auto;
  }
  .send-btn:hover{ background:#0f3a24; }

  /* ---------- page: about kyrgyzstan ---------- */
  .about-map-wrap{
    position:relative;
    height:420px;
    margin-bottom:40px;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .about-map-wrap img{
    max-height:100%;
    max-width:100%;
    object-fit:contain;
  }
  .watch-video{
    position:absolute;
    right:0; bottom:6px;
    color:#e6e3e3;
    font-size:15px;
    text-decoration:underline;
    cursor:pointer;
  }
  .about-columns{
    display:flex;
    gap:60px;
    align-items:flex-start;
  }
  .about-col-left{ flex:1.5; }
  .about-col-right{ flex:1; }
  .about-heading{ font-weight:700; font-size:16px; margin:0 0 14px; }
  .about-text{ font-size:16px; line-height:1.55; margin:0 0 18px; white-space:pre-line; }

  /* ---------- page: log in to profile ---------- */
  #page-login{ padding: 130px 48px 90px; }
  .login-box{
    background:rgba(120,120,120,0.55);
    border:1px dashed rgba(255,255,255,0.6);
    padding:26px;
    text-align:center;
    color:#fff;
    font-size:24px;
    margin-bottom:50px;
  }
  .login-form{
    width:520px;
    margin:0 auto;
  }
  .login-form label{
    display:block;
    color:#fff;
    font-size:17px;
    margin-bottom:10px;
  }
  .login-form input{
    width:100%;
    height:48px;
    background:#2f333e;
    border:1px solid #454a58;
    border-radius:2px;
    color:#fff;
    font-size:15px;
    padding:0 14px;
    margin-bottom:34px;
  }
  .login-links{
    margin-bottom:36px;
  }
  .login-links div{
    color:#e6e3e3;
    font-size:16px;
    margin-bottom:20px;
  }
  .login-form .next-btn{
    position:static;
    display:block;
    margin:0 auto 60px;
    width:150px;
  }
  .attention-box{
    max-width:940px;
    margin:0 auto;
    background:#d8d6d1;
    color:#1a1a1a;
    padding:38px 44px;
    text-align:center;
  }
  .attention-box h3{
    font-size:17px;
    font-weight:700;
    margin:0 0 22px;
  }
  .attention-box p{
    font-size:22px;
    line-height:1.5;
    margin:0 0 22px;
  }
  .attention-box a{ color:#2952d8; text-decoration:none; }
  .attention-box a:hover{ text-decoration:underline; }

  /* ---------- page 3: application status (shown on success) ---------- */
  #page-status{ padding: 112px 56px 80px; }
  .status-title{
    text-align:center;
    color:#fff;
    font-size:36px;
    font-weight:800;
    letter-spacing:2px;
    margin: 10px 0 44px;
  }
  .status-grid{
    display:flex;
    gap:56px;
  }
  .status-col{
    flex:1;
    display:flex;
    flex-direction:column;
  }
  .status-field{ margin-bottom:22px; }
  .status-field label{
    display:block;
    color:#fff;
    font-size:16px;
    margin-bottom:8px;
  }
  .status-field .value-box{
    background:#d8d6d1;
    color:#1a1a1a;
    font-size:16px;
    padding:12px 16px;
    border-radius:3px;
    min-height:20px;
  }
  .status-field .value-box.strong{ font-weight:700; }
  .status-buttons{
    display:flex;
    justify-content:flex-end;
    gap:22px;
    margin-top:20px;
    padding-right: 0;
  }
  .status-buttons button{
    background:#0a2c1c;
    border:1px solid #1f4a34;
    color:#3fcf8c;
    font-weight:700;
    font-size:14px;
    letter-spacing:1px;
    border-radius:2px;
    padding:14px 34px;
    cursor:pointer;
  }
  .status-buttons button:hover{ background:#0f3a24; }
