/* =========================================================
   Baipket / iOS-26 Glass UI + Brandbook Fonts + Responsive
   Background image: /assets/bg.png
   Fonts:
     /assets/fonts/Gotham-Ultra.woff2, .woff
     /assets/fonts/Gotham-Medium.woff2, .woff
     /assets/fonts/HelveticaNowText-Light.woff2, .woff  (или твой Helvetica Light)
========================================================= */

/* ===== Brandbook Fonts ===== */
@font-face{
  font-family:"Gotham";
  src:url("/assets/fonts/Gotham-Ultra.woff2") format("woff2"),
      url("/assets/fonts/Gotham-Ultra.woff") format("woff");
  font-weight:900;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Gotham";
  src:url("/assets/fonts/Gotham-Medium.woff2") format("woff2"),
      url("/assets/fonts/Gotham-Medium.woff") format("woff");
  font-weight:600;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"BrandText";
  src:url("/assets/fonts/HelveticaNowText-Light.woff2") format("woff2"),
      url("/assets/fonts/HelveticaNowText-Light.woff") format("woff");
  font-weight:300;
  font-style:normal;
  font-display:swap;
}

:root{
  --font-title: "Gotham","Arial Black",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  --font-sub:   "Gotham",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  --font-body:  "BrandText","Helvetica Neue",Helvetica,Arial,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;

  --bg: #0b0b0c;
  --card: rgba(22,24,26,.46);
  --card-2: rgba(22,24,26,.36);
  --stroke: rgba(255,255,255,.10);
  --stroke-soft: rgba(255,255,255,.07);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.55);

  --yellow: #ffd500;
  --yellow-2: #ffea47;

  --shadow1: 0 24px 70px rgba(0,0,0,.55);
  --shadow2: 0 10px 35px rgba(0,0,0,.40);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;

  --maxw: 560px;
  --gap: 14px;

  --press: cubic-bezier(.2,.8,.2,1);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  font-family:var(--font-body);
  background:var(--bg);
  overflow-x:hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* ===== Background: your banner ===== */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(1200px 700px at 50% 25%, rgba(255,213,0,.12), transparent 60%),
    radial-gradient(900px 500px at 20% 70%, rgba(255,213,0,.08), transparent 65%),
    url("/assets/bg.png") center / cover no-repeat;
  filter: saturate(1.05) contrast(1.05) brightness(.82);
  transform: translateZ(0);
  z-index:-3;
}

/* extra vignette + softness */
body::after{
  content:"";
  position:fixed;
  inset:-2px;
  background:
    radial-gradient(900px 600px at 50% 30%, rgba(0,0,0,.18), rgba(0,0,0,.62) 68%, rgba(0,0,0,.78) 100%),
    linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.62));
  z-index:-2;
  pointer-events:none;
}

/* ===== Layout wrapper ===== */
.wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(14px, 3.2vw, 34px);
}

/* ===== Glass card (no thin inner line) ===== */
.card{
  width:min(var(--maxw), 100%);
  padding: clamp(18px, 3.3vw, 26px);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04)),
    radial-gradient(900px 260px at 50% 10%, rgba(255,213,0,.10), transparent 60%),
    var(--card);
  box-shadow: var(--shadow1);
  position:relative;
  overflow:hidden;

  /* IMPORTANT: remove that “thin inserted border line” */
  border: 0 !important;
  outline: none !important;
}

.card::before{
  /* soft glass noise + sheen */
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(1200px 400px at 30% 0%, rgba(255,255,255,.10), transparent 55%),
    radial-gradient(900px 350px at 80% 15%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 35%);
  mix-blend-mode: screen;
  opacity:.85;
  pointer-events:none;
}

.card::after{
  /* outer stroke only (no inner line) */
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  border: 1px solid var(--stroke);
  pointer-events:none;
}

/* ===== Headings ===== */
.title{
  font-family: var(--font-title);
  font-weight: 900;
  letter-spacing: -0.025em; /* brandbook -2.5% */
  text-transform: uppercase;
  font-size: clamp(24px, 3.9vw, 44px);
  line-height: 1.05;
  margin: 0 0 8px;
  text-align:center;
}

.sub{
  font-family: var(--font-sub);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  text-align:center;
  color: var(--muted);
  font-size: clamp(13px, 1.6vw, 16px);
  line-height: 1.45;
}

/* ===== Question text ===== */
.q{
  font-family: var(--font-title);
  font-weight: 900;
  letter-spacing: -0.015em;
  font-size: clamp(18px, 2.25vw, 26px);
  line-height: 1.2;
  margin: 6px 0 14px;
}

/* ===== Form элементы ===== */
label{
  display:block;
  margin: 12px 0 8px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .01em;
}

input[type="text"], input[type="tel"], input[type="email"], input[type="number"], textarea{
  width:100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke-soft);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.25) inset;
  transition: transform .14s var(--press), border-color .14s var(--press), background .14s var(--press);
}

input::placeholder{ color: rgba(255,255,255,.35); }
input:focus{
  border-color: rgba(255,213,0,.35);
  background: rgba(0,0,0,.30);
  transform: translateY(-1px);
}

/* ===== Checkbox ===== */
.chk{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}
.chk input{
  width:18px;
  height:18px;
  accent-color: var(--yellow);
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height: 50px;
  border-radius: 16px;
  border: 0;
  cursor:pointer;
  user-select:none;
  text-decoration:none;

  font-family: var(--font-sub);
  font-weight: 600;
  letter-spacing: -0.015em;

  background: linear-gradient(180deg, var(--yellow-2), var(--yellow));
  color: #111;
  box-shadow: 0 18px 45px rgba(255,213,0,.20), 0 12px 28px rgba(0,0,0,.45);
  transition: transform .14s var(--press), filter .14s var(--press), box-shadow .14s var(--press);
}
.btn:hover{ filter: brightness(1.02) saturate(1.03); transform: translateY(-1px); }
.btn:active{ transform: translateY(0px) scale(.99); }

/* ghost button (for Back / secondary) */
.btn-ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height: 50px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
  text-decoration:none;
  font-family: var(--font-sub);
  font-weight:600;
  letter-spacing:-0.015em;
  box-shadow: var(--shadow2);
  transition: transform .14s var(--press), background .14s var(--press), border-color .14s var(--press);
}
.btn-ghost:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.14);
  transform: translateY(-1px);
}
.btn-ghost:active{ transform: translateY(0px) scale(.99); }

/* ===== Options list ===== */
.opts{
  display:flex;
  flex-direction:column;
  gap: 12px;
  margin-top: 14px;
}

/* option button */
.opt{
  display:flex;
  align-items:center;
  gap: 12px;
  width:100%;
  padding: 14px 14px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)),
    rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
  cursor:pointer;
  text-align:left;
  transition: transform .14s var(--press), border-color .14s var(--press), background .14s var(--press);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}

/* REMOVE inner thin line effect if any browser outlines */
.opt:focus{ outline:none; }

.opt:hover{
  transform: translateY(-1px);
  border-color: rgba(255,213,0,.25);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    rgba(0,0,0,.18);
}
.opt:active{ transform: translateY(0px) scale(.995); }

/* A/B/C/D badge */
.k{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;

  font-family: var(--font-title);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #111;

  background: linear-gradient(180deg, var(--yellow-2), var(--yellow));
  box-shadow: 0 16px 28px rgba(255,213,0,.18), 0 10px 22px rgba(0,0,0,.45);
  flex: 0 0 auto;
}

.t{
  font-size: 15px;
  line-height: 1.28;
  color: var(--text);
  opacity: .96;
}

/* ===== Back button placement: bottom, centered, same width as options ===== */
.back-wrap{
  margin-top: 14px;
  display:flex;
  justify-content:center;
}
.back-wrap .btn-ghost{
  width: 100%;
  max-width: 100%;
}

/* ===== Result page button same width as options ===== */
.result-actions{
  margin-top: 16px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}

/* ===== Make everything consistent on small screens ===== */
@media (max-width: 420px){
  :root{ --maxw: 520px; }
  .card{ padding: 16px; border-radius: 22px; }
  .k{ width:38px; height:38px; border-radius: 13px; }
  .opt{ padding: 13px; }
  .t{ font-size: 14px; }
  .btn, .btn-ghost{ height: 48px; border-radius: 15px; }
}

/* ===== Tablet: slightly wider, more air ===== */
@media (min-width: 768px){
  :root{ --maxw: 640px; }
  .card{ padding: 26px; }
  .opts{ gap: 14px; margin-top: 16px; }
}

/* ===== Desktop big: allow more width ===== */
@media (min-width: 1200px){
  :root{ --maxw: 720px; }
}

/* ===== Disable tap highlight on mobile ===== */
button, a{ -webkit-tap-highlight-color: transparent; }

/* ===== Disabled state used by your overlay script ===== */
button[disabled], input[disabled], a[disabled]{
  opacity:.65;
  pointer-events:none;
  filter: grayscale(.15);
}

/* PHONE: крупные цифры + по центру */
#phone, #name{
  text-align: center;
  font-size: clamp(18px, 4.8vw, 26px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  padding-top: 16px;
  padding-bottom: 16px;
}

/* чтобы плейсхолдер тоже был по центру */
#phone::placeholder, #name::placeholder{
  text-align: center;
  opacity: .55;
}

/* Кнопка "Бастау" — больше, как app */
.btn{
  min-height: 56px;
  width: 100%;
  font-size: clamp(18px, 4.2vw, 22px);
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 16px;
  padding: 16px 18px;
}

/* чтобы браузер не "умножал" шрифты */
html{
  -webkit-text-size-adjust: 100%;
}

/* на Android/Chrome убирает double-tap zoom на клики */
button, a, .btn, .opt{
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.legal{
  margin: 12px 4px 0;
  font-size: 12px;
  line-height: 1.35;
  opacity: .72;
  text-align: center;
}

.legal a{
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.legal a{
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* privacy-policy: ссылки (телефон/бин) белые */
.doc a,
.doc a:visited {
  color: rgba(255,255,255,.92);
}

.doc a:hover {
  color: #fff;
}