@font-face{
  font-family: "IQOSBreathing";
  src: url("./assets/Breathing-IQOS.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}
@font-face{
  font-family: "IQOS";
  src: url("./assets/IQOS-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face{
  font-family: "IQOS";
  src: url("./assets/IQOS-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root{
  --white: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --line: rgba(255,255,255,0.34);
  --safeTop: env(safe-area-inset-top, 0px);
  --safeBottom: env(safe-area-inset-bottom, 0px);
  --vv-bottom: 0px;
  --app-w: 100vw;
  --app-h: 100vh;
}

*{ box-sizing: border-box; }
html, body{ margin:0; width:100%; height:100%; }
html, body{
  overflow:hidden;
  background:#0d0921;
}
body{
  font-family: "IQOS", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--white);
}

button, input, textarea{ font: inherit; }
button{ -webkit-tap-highlight-color: transparent; }

.appWrap,
.phone{
  position: relative;
  width:100%;
  height:100%;
}

.phone{
  position: fixed;
  inset: 0;
  width: 100vw;
  width: 100svw;
  width: -webkit-fill-available;
  height: var(--vvh, 100vh);
  min-height: var(--vvh, 100vh);
  overflow: hidden;
  background: transparent;
}

.bgImage{
  position:absolute;
  inset:0;
  z-index:1;
  background-image: url("./assets/levia.png");
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center;
  pointer-events:none;
}

.topbar{
  position:absolute;
  top: calc(12px + var(--safeTop));
  right: clamp(16px, 3.6vw, 32px);
  z-index: 30;
}
.langBtn{
  border:1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-radius:999px;
  padding: 10px 16px;
  font-weight:700;
  font-size: 14px;
  line-height:1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.progressWrap{
  position:absolute;
  top: calc(64px + var(--safeTop));
  left: clamp(18px, 4vw, 44px);
  right: clamp(18px, 4vw, 44px);
  z-index: 20;
  pointer-events:none;
}
.progressBar{
  height: 6px;
  border-radius:999px;
  background: rgba(255,255,255,0.18);
  overflow:hidden;
}
.progressFill{
  height:100%;
  width:10%;
  background: rgba(255,255,255,0.88);
  border-radius:999px;
}
.progressText{
  text-align:center;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.screenInner{
  position:relative;
  z-index:5;
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 12px;
  padding:
    calc(112px + var(--safeTop))
    clamp(20px, 5vw, 48px)
    calc(124px + var(--safeBottom) + var(--vv-bottom));
}

.heroLogo{
  width: clamp(132px, 22vw, 220px);
  display:flex;
  align-items:center;
  justify-content:center;
  filter:
    drop-shadow(0 0 18px rgba(255,255,255,0.78))
    drop-shadow(0 0 34px rgba(255,255,255,0.36));
}
.heroLogo img{
  width:100%;
  height:auto;
  display:block;
}
.hidden{ display:none !important; }

.title{
  margin:0;
  width:min(90vw, 760px);
  text-align:center;
  font-size: clamp(20px, 2.5vw, 38px);
  font-weight:700;
  line-height:1.18;
}
.subtitle{
  margin: -4px 0 0;
  color: var(--muted);
  text-align:center;
  font-size: clamp(12px, 1.4vw, 16px);
}

.content{
  width:min(90vw, 700px);
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap: 12px;
}

.optionRow{
  width:100%;
  display:flex;
  align-items:center;
  gap: 16px;
  padding: 6px 0;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
.mark{
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 2px solid var(--line);
  background: rgba(255,255,255,0.04);
}
.mark.radio{ border-radius:999px; }
.mark.checkbox{ border-radius:8px; }
.mark.checked{ border-color: rgba(255,255,255,0.96); }
.mark.checked::after{
  content:"";
  width:11px;
  height:7px;
  border-left:2px solid rgba(255,255,255,0.98);
  border-bottom:2px solid rgba(255,255,255,0.98);
  transform: rotate(-45deg);
  margin-top:-2px;
}
.optText{
  font-size: clamp(14px, 1.45vw, 18px);
  font-weight:700;
  line-height:1.28;
}

textarea{
  width:100%;
  min-height: 160px;
  resize:none;
  border-radius:18px;
  border:1px solid var(--line);
  padding: 16px 18px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  outline:none;
  font-size:16px;
}

.sliderWrap{
  width:100%;
  margin: 0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 12px;
  --sliderH: 420px;
  --thumb: 32px;
  --trackW: 4px;
}
.sliderHint{
  text-align:center;
  color: var(--muted);
  font-size:14px;
}
.sliderGrid{
  width:260px;
  display:grid;
  grid-template-columns: 56px 1fr;
  column-gap: 20px;
  justify-items:center;
  align-items:center;
}
.scale{
  width:56px;
  height:var(--sliderH);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:flex-end;
  font-size:18px;
}
.scale div{ line-height:1; }
.vrange{
  position:relative;
  width:56px;
  height:var(--sliderH);
}
input[type="range"].vertical{
  -webkit-appearance:none;
  appearance:none;
  position:absolute;
  left:50%;
  top:50%;
  width:var(--sliderH);
  height:var(--trackW);
  transform: translate(-50%, -50%) rotate(-90deg);
  background:transparent;
}
input[type="range"].vertical::-webkit-slider-runnable-track{
  height: var(--trackW);
  background: rgba(255,255,255,0.78);
  border-radius:999px;
}
input[type="range"].vertical::-moz-range-track{
  height: var(--trackW);
  background: rgba(255,255,255,0.78);
  border-radius:999px;
}
input[type="range"].vertical::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width: var(--thumb);
  height: var(--thumb);
  border-radius:999px;
  background: rgba(255,255,255,0.98);
  border:none;
  margin-top: calc((var(--trackW) - var(--thumb)) / 2);
}
input[type="range"].vertical::-moz-range-thumb{
  width: var(--thumb);
  height: var(--thumb);
  border-radius:999px;
  background: rgba(255,255,255,0.98);
  border:none;
}

.hint{
  min-height: 20px;
  text-align:center;
  color: rgba(255,255,255,0.86);
  font-size: 14px;
}

.navBar{
  position:absolute;
  left: clamp(18px, 4vw, 44px);
  right: clamp(18px, 4vw, 44px);
  bottom: calc(10px + var(--safeBottom) + var(--vv-bottom));
  z-index: 25;
  display:flex;
  flex-direction: column;
  gap: 14px;
}
.navRow{
  display:flex;
  align-items:center;
  gap: 14px;
}
/* Language selector in footer */
.langSelectorWrap{
  display:flex;
  gap: 12px;
  justify-content:center;
}
.langSelectBtn{
  border: 2px solid rgba(255,255,255,0.36);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border-radius:999px;
  padding: 12px 32px;
  font-weight:700;
  font-size: 18px;
  cursor:pointer;
}
.langSelectBtn.active{
  background: rgba(255,255,255,0.97);
  border-color: rgba(255,255,255,0.97);
  color: rgba(0,0,0,0.84);
}
.btn{
  border:1px solid rgba(255,255,255,0.36);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-weight:700;
  cursor:pointer;
}
.btn.icon{
  width:56px;
  height:48px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 20px;
  flex: 0 0 56px;
}
.btn.pill{
  height:48px;
  flex:1 1 auto;
  border-radius:999px;
  font-size:18px;
}
.btn:disabled{ opacity:0.55; cursor:default; }

body.is-start.lang-lv .title,
body.is-thanks.lang-lv .title,
body.is-start.lang-lt .title,
body.is-thanks.lang-lt .title{
  font-family: "IQOSBreathing", cursive;
  font-weight: 400;
  font-size: clamp(48px, 12vw, 96px);
}
body.is-start.lang-ru .title,
body.is-thanks.lang-ru .title{
  font-size: clamp(48px, 12vw, 96px);
}
.doneCheck{
  display:inline-block;
  margin-left: 6px;
  font-size: 0.9em;
}
body.is-start .btn.pill{
  background: rgba(255,255,255,0.97);
  border-color: rgba(255,255,255,0.97);
  color: rgba(0,0,0,0.84);
}
body.is-start .title,
body.is-thanks .title{
  width:min(90vw, 560px);
}
body.is-start .screenInner,
body.is-thanks .screenInner{
  justify-content:center;
}
body.is-question .screenInner{
  justify-content:center;
}

body.is-q2 .title{ width:min(90vw, 560px); }

/* phones */
@media (max-width: 739px){
  .screenInner{
    padding-top: calc(102px + var(--safeTop));
    padding-bottom: calc(118px + var(--safeBottom) + var(--vv-bottom));
    gap: 10px;
  }
  .progressWrap{
    top: calc(56px + var(--safeTop));
    left: 16px;
    right: 16px;
  }
  .topbar{ top: calc(10px + var(--safeTop)); right: 16px; }
  .langBtn{ padding: 9px 14px; font-size: 13px; }
  .heroLogo{ width: clamp(130px, 34vw, 170px); }
  .title{ width:min(90vw, 324px); font-size: clamp(14px, 6.2vw, 26px); line-height: 1.14; }
  .content{ width:min(92vw, 360px); }
  .optText{ font-size: clamp(13px, 4.2vw, 16px); }
  .mark{ width:24px; height:24px; flex-basis:24px; }
  .navBar{
    left: 16px;
    right: 16px;
    bottom: calc(12px + var(--safeBottom) + var(--vv-bottom));
  }
  .btn.icon{ width:52px; height:46px; flex-basis:52px; }
  .btn.pill{ height:46px; font-size: 17px; }
  .hint{ font-size: 13px; }

  body.is-q3 .title{ width:min(90vw, 312px); margin-top: 12px; font-size: clamp(14px, 5.8vw, 24px); line-height: 1.1; }
  body.is-q3 .sliderHint{ font-size: 11px; }
}

/* compact tablets: iPad Mini / iPad / iPad Air portrait */
@media (min-width: 740px) and (max-width: 830px) and (min-height: 900px){
  .topbar{ right: 24px; }
  .progressWrap{ left: 28px; right: 28px; top: calc(58px + var(--safeTop)); }
  .screenInner{
    padding-top: calc(122px + var(--safeTop));
    padding-bottom: calc(132px + var(--safeBottom) + var(--vv-bottom));
    gap: 10px;
  }
  .title{
    width:min(74vw, 390px);
    font-size: clamp(16px, 3.1vw, 28px);
    line-height: 1.12;
  }
  .content{ width:min(74vw, 390px); }
  .optText{ font-size: 15px; }
  .btn.pill{ font-size: 18px; }
  .btn.icon{ width:58px; height:50px; flex-basis:58px; }
  body.is-q3 .title{ width:min(74vw, 390px); margin-top: 14px; font-size: clamp(15px, 2.9vw, 26px); line-height: 1.1; }
}

/* large tablets */
@media (min-width: 831px) and (max-width: 1180px){
  .progressWrap{ left: 34px; right: 34px; }
  .screenInner{
    padding-top: calc(126px + var(--safeTop));
    padding-bottom: calc(138px + var(--safeBottom) + var(--vv-bottom));
  }
  .title{ width:min(70vw, 560px); font-size: clamp(20px, 2.4vw, 34px); }
  .content{ width:min(70vw, 560px); }
}

/* desktop widescreen */
@media (min-width: 1181px){
  .screenInner{
    padding-top: calc(126px + var(--safeTop));
    padding-bottom: calc(136px + var(--safeBottom) + var(--vv-bottom));
  }
  .title{ width:min(66vw, 760px); font-size: clamp(22px, 2vw, 34px); }
  .content{ width:min(66vw, 760px); }
}