*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html,
body{
  width:100%;
  min-height:100%;
  overflow-x:hidden;
}

:root{
  --bg:#000000;
  --surface:#15191c;
  --surface-soft:#0f1113;
  --white:#ffffff;
  --black:#000000;
  --text:#f5f5f5;
  --muted:#c8c8c8;
  --muted-2:#9b9b9b;
  --line:rgba(255,255,255,0.13);
  --line-strong:rgba(255,255,255,0.28);
}

body{
  background:var(--bg);
  color:var(--text);
  font-family:"Inter", Arial, Helvetica, sans-serif;
  line-height:1.45;
  font-weight:500;
}

/* ================= SIDE MENU ================= */

.menu-overlay{
  position:fixed;
  inset:0;
  z-index:180;
  background:rgba(0,0,0,.62);
  opacity:0;
  visibility:hidden;
  transition:opacity .2s ease, visibility .2s ease;
}

.menu-overlay.active{
  opacity:1;
  visibility:visible;
}

.side-menu{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  z-index:220;
  width:min(370px, 88vw);
  background:#050505;
  border-right:1px solid var(--line);
  transform:translateX(-100%);
  transition:transform .22s ease;
  overflow-y:auto;
}

.side-menu.active{
  transform:translateX(0);
}

body.menu-open{
  overflow:hidden;
}

.side-menu-head{
  height:82px;
  padding:0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
}

.side-menu-head img{
  height:36px;
  width:auto;
  max-width:185px;
  display:block;
  object-fit:contain;
}

.side-menu-head button{
  width:40px;
  height:40px;
  border:1px solid var(--line);
  background:#111111;
  color:#ffffff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

.side-menu-head button:hover{
  background:#ffffff;
  color:#050505;
}

.side-menu-links{
  padding:14px;
  display:grid;
  gap:4px;
}

.side-menu-label{
  padding:18px 12px 6px;
  color:#ffffff;
  font-size:11px;
  font-weight:750;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.side-menu-label:first-child{
  padding-top:4px;
}

.side-menu-links a{
  min-height:48px;
  padding:0 12px;
  display:flex;
  align-items:center;
  color:#ffffff;
  text-decoration:none;
  font-size:15px;
  font-weight:650;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.side-menu-links a:hover{
  background:#111111;
}

.side-menu-links .side-menu-main{
  margin-top:12px;
  justify-content:center;
  background:#ffffff;
  color:#050505;
  border-bottom:none;
  border-radius:999px;
  font-weight:750;
}

.side-menu-links .side-menu-main:hover{
  background:#e8e8e8;
}

/* ================= HEADER ================= */

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:#050505;
  border-bottom:1px solid var(--line);
}

.top-header{
  width:min(1600px, calc(100% - 40px));
  min-height:78px;
  margin:0 auto;
  display:grid;
  grid-template-columns:auto auto minmax(0, 1fr) auto;
  align-items:center;
  gap:18px;
}

.menu-button{
  width:42px;
  height:42px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  background:transparent;
  border:1px solid transparent;
  cursor:pointer;
}

.menu-button:hover{
  border-color:var(--line);
}

.menu-button span{
  width:20px;
  height:2px;
  background:#ffffff;
  display:block;
}

.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  flex:0 0 auto;
}

.brand img{
  height:34px;
  width:auto;
  max-width:178px;
  display:block;
  object-fit:contain;
}

.desktop-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  min-width:0;
  overflow-x:auto;
}

.desktop-nav::-webkit-scrollbar{
  display:none;
}

.desktop-nav a{
  height:42px;
  padding:0 13px;
  display:flex;
  align-items:center;
  color:#ffffff;
  text-decoration:none;
  font-size:15px;
  font-weight:650;
  white-space:nowrap;
}

.desktop-nav a:hover{
  text-decoration:underline;
  text-underline-offset:5px;
}

.account-actions{
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:flex-end;
}

.header-link,
.header-btn{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#ffffff;
  text-decoration:none;
  font-size:14px;
  font-weight:650;
  white-space:nowrap;
}

.header-link:hover{
  text-decoration:underline;
  text-underline-offset:5px;
}

.header-btn{
  height:42px;
  padding:0 20px;
  background:#ffffff;
  color:#050505;
  border:1px solid #ffffff;
  border-radius:999px;
  font-weight:750;
}

.header-btn:hover{
  background:#e8e8e8;
  border-color:#e8e8e8;
}

/* ================= PAGE ================= */

.apply-page{
  width:min(1380px, calc(100% - 40px));
  margin:32px auto 104px;
}

/* ================= TOP ================= */

.apply-top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  padding-bottom:30px;
  border-bottom:1px solid var(--line);
  margin-bottom:26px;
}

.section-label{
  margin-bottom:16px;
  color:#ffffff;
  font-size:13px;
  line-height:1;
  font-weight:750;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.apply-top h1{
  color:#ffffff;
  font-size:clamp(52px, 6.5vw, 104px);
  line-height:.92;
  letter-spacing:-0.065em;
  font-weight:760;
  margin-bottom:20px;
}

.apply-top p{
  max-width:760px;
  color:#ffffff;
  font-size:18px;
  line-height:1.65;
  font-weight:500;
  letter-spacing:-0.01em;
}

.top-action{
  min-height:44px;
  padding:0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  background:#ffffff;
  color:#050505;
  border:1px solid #ffffff;
  border-radius:999px;
  text-decoration:none;
  font-size:14px;
  font-weight:750;
  white-space:nowrap;
}

.top-action:hover{
  background:#e8e8e8;
  border-color:#e8e8e8;
}

/* ================= LAYOUT ================= */

.apply-layout{
  display:grid;
  grid-template-columns:350px minmax(0, 1fr);
  gap:24px;
  align-items:start;
}

/* ================= SIDE INFO ================= */

.apply-info{
  position:sticky;
  top:104px;
  padding:24px;
  background:#15191c;
  border-radius:24px;
}

.apply-info h2{
  margin-bottom:20px;
  color:#ffffff;
  font-size:30px;
  line-height:1;
  letter-spacing:-0.035em;
  font-weight:650;
}

.info-list{
  display:grid;
  gap:0;
}

.info-list div{
  padding:18px 0;
  border-bottom:1px solid rgba(255,255,255,.1);
}

.info-list div:first-child{
  padding-top:0;
}

.info-list div:last-child{
  border-bottom:none;
  padding-bottom:0;
}

.info-list strong{
  display:block;
  margin-bottom:7px;
  color:#ffffff;
  font-size:16px;
  line-height:1.25;
  font-weight:650;
}

.info-list p{
  color:#dddddd;
  font-size:14px;
  line-height:1.6;
  font-weight:500;
}

/* ================= FORM CARD ================= */

.apply-card{
  padding:24px;
  background:#15191c;
  border-radius:24px;
}

.form-head{
  padding-bottom:22px;
  border-bottom:1px solid rgba(255,255,255,.1);
  margin-bottom:22px;
}

.form-head p{
  margin-bottom:7px;
  color:#ffffff;
  font-size:13px;
  font-weight:750;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.form-head h2{
  color:#ffffff;
  font-size:30px;
  line-height:1;
  letter-spacing:-0.035em;
  font-weight:650;
}

/* ================= FORM ================= */

.apply-form{
  display:grid;
  gap:16px;
}

.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.form-group{
  display:grid;
  gap:8px;
}

.form-group label{
  color:#ffffff;
  font-size:14px;
  font-weight:650;
}

.apply-form input,
.apply-form textarea,
.apply-form select{
  width:100%;
  background:#0f1113;
  color:#ffffff;
  border:1px solid var(--line);
  border-radius:12px;
  outline:none;
  font-size:15px;
  font-weight:500;
}

.apply-form input,
.apply-form select{
  height:48px;
  padding:0 14px;
}

.apply-form textarea{
  min-height:126px;
  resize:vertical;
  padding:14px;
  line-height:1.6;
}

.apply-form input::placeholder,
.apply-form textarea::placeholder{
  color:#9b9b9b;
}

.apply-form input:focus,
.apply-form textarea:focus,
.apply-form select:focus{
  border-color:#ffffff;
}

.apply-form select{
  cursor:pointer;
}

.apply-form select option{
  background:#151515;
  color:#ffffff;
}

/* ================= NUMBER INPUT ================= */

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button{
  -webkit-appearance:none;
  margin:0;
}

input[type=number]{
  -moz-appearance:textfield;
}

/* ================= FILE UPLOAD ================= */

.file-upload{
  width:100%;
  min-height:48px;
  padding:0 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:#0f1113;
  color:#ffffff;
  border:1px solid var(--line);
  border-radius:12px;
  cursor:pointer;
}

.file-upload:hover{
  border-color:#ffffff;
}

.file-upload span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#cfcfcf;
  font-size:15px;
  font-weight:500;
}

.file-upload::after{
  content:"Choose file";
  flex:0 0 auto;
  color:#ffffff;
  font-size:13px;
  font-weight:650;
}

/* ================= SUBMIT ================= */

.submit-btn{
  width:100%;
  height:52px;
  margin-top:6px;
  background:#ffffff;
  color:#050505;
  border:1px solid #ffffff;
  border-radius:999px;
  cursor:pointer;
  font-size:15px;
  font-weight:750;
}

.submit-btn:hover{
  background:#e8e8e8;
  border-color:#e8e8e8;
}

/* ================= MOBILE BOTTOM NAV ================= */

.mobile-bottom-nav{
  display:none;
}

/* ================= TABLET ================= */

@media(max-width:1180px){

  .top-header{
    width:calc(100% - 28px);
    min-height:auto;
    padding:12px 0;
    grid-template-columns:auto auto 1fr;
  }

  .brand img{
    height:32px;
    max-width:168px;
  }

  .desktop-nav{
    grid-column:1 / -1;
    justify-content:flex-start;
  }

  .account-actions{
    justify-self:end;
  }

  .apply-page{
    width:calc(100% - 28px);
  }

  .apply-top{
    flex-direction:column;
    align-items:flex-start;
  }

  .apply-layout{
    grid-template-columns:1fr;
  }

  .apply-info{
    position:relative;
    top:0;
  }

  .info-list{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:14px;
  }

  .info-list div{
    padding:0;
    border-bottom:none;
  }

}

/* ================= PHONE ================= */

@media(max-width:768px){

  body{
    padding-bottom:72px;
  }

  .top-header{
    width:calc(100% - 18px);
    min-height:58px;
    padding:8px 0;
    display:flex;
    flex-wrap:nowrap;
    gap:8px;
  }

  .menu-button{
    width:36px;
    height:36px;
  }

  .brand img{
    height:28px;
    max-width:128px;
  }

  .desktop-nav{
    display:none;
  }

  .account-actions{
    margin-left:auto;
    gap:7px;
  }

  .header-link{
    display:none;
  }

  .header-btn{
    height:34px;
    padding:0 12px;
    font-size:12px;
  }

  .apply-page{
    width:calc(100% - 18px);
    margin:24px auto 88px;
  }

  .apply-top{
    gap:18px;
    padding-bottom:24px;
    margin-bottom:18px;
  }

  .section-label{
    margin-bottom:12px;
    font-size:11px;
  }

  .apply-top h1{
    font-size:42px;
    line-height:.98;
    letter-spacing:-0.05em;
    margin-bottom:14px;
  }

  .apply-top p{
    font-size:15px;
    line-height:1.6;
  }

  .top-action{
    width:100%;
    height:42px;
  }

  .apply-layout{
    gap:18px;
  }

  .apply-info,
  .apply-card{
    padding:18px;
    border-radius:20px;
  }

  .apply-info h2{
    font-size:24px;
  }

  .info-list{
    grid-template-columns:1fr;
    gap:0;
  }

  .info-list div{
    padding:14px 0;
    border-bottom:1px solid rgba(255,255,255,.1);
  }

  .info-list div:first-child{
    padding-top:0;
  }

  .info-list div:last-child{
    border-bottom:none;
    padding-bottom:0;
  }

  .form-head{
    margin-bottom:20px;
    padding-bottom:18px;
  }

  .form-head p{
    font-size:10.5px;
    margin-bottom:6px;
  }

  .form-head h2{
    font-size:24px;
  }

  .form-row{
    grid-template-columns:1fr;
    gap:16px;
  }

  .apply-form input,
  .apply-form select,
  .file-upload{
    height:46px;
    font-size:14px;
  }

  .apply-form textarea{
    min-height:114px;
    font-size:14px;
  }

  .submit-btn{
    height:48px;
    font-size:14px;
  }

  .mobile-bottom-nav{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:120;
    height:64px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    background:#050505;
    border-top:1px solid var(--line);
  }

  .mobile-bottom-nav a{
    display:flex;
    align-items:center;
    justify-content:center;
    color:#ffffff;
    text-decoration:none;
    font-size:12px;
    font-weight:700;
  }

  .mobile-bottom-nav a.active,
  .mobile-bottom-nav a:hover{
    text-decoration:underline;
    text-underline-offset:4px;
  }

}

/* ================= SMALL PHONE ================= */

@media(max-width:420px){

  .top-header,
  .apply-page{
    width:calc(100% - 14px);
  }

  .brand img{
    height:26px;
    max-width:118px;
  }

  .header-btn{
    padding:0 10px;
  }

  .apply-top h1{
    font-size:38px;
  }

  .apply-card,
  .apply-info{
    padding:16px;
  }

  .file-upload::after{
    display:none;
  }

}

/* ================= VERY SMALL PHONE ================= */

@media(max-width:360px){

  .brand img{
    height:24px;
    max-width:108px;
  }

  .header-btn{
    height:32px;
    padding:0 8px;
    font-size:11px;
  }

  .apply-top h1{
    font-size:35px;
  }

}