/* «Кто ты на корпоративе?» — вёрстка 1:1 с макетами Penpot. Все размеры — в пикселях макета (390 мобилка / 1440 десктоп),
   экран целиком масштабируется под ширину окна (js/app.js → fit). */
:root { --ink: #3d352e; --blue: #0f8eff; --red: #fe5155; --gold: #e8b53a; --cream: #fff9ec; --line: #efe1c6; --page: #e9effa; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--page); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; font-family: 'Montserrat', system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#stage { position: relative; width: 100%; overflow: hidden; }
/* десктоп в невысоком окне: сцена меньше, по бокам — размытое продолжение той же сцены */
#stage::before { content: ''; position: absolute; inset: -60px; background: var(--side, none) center top / cover no-repeat; filter: blur(28px) saturate(1.05); opacity: .95; }
#art { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: var(--page) no-repeat center top / 100% auto;
  transition: opacity .22s ease; }
#art.fade { opacity: 0; }
.abs { position: absolute; }
.plate { position: absolute; left: 0; top: 0; width: 100%; display: block; pointer-events: none; user-select: none; }
.sprite { position: absolute; display: block; pointer-events: none; user-select: none; }

/* ===== пузыри: реплика / вопрос ===== */
.bubble { background: var(--cream); }  /* обводка в Penpot — внутренняя (inner), в раскладке не участвует → inset-тень */
.m .bubble { border-radius: 26.4px; padding: 20px 24px 22px; box-shadow: inset 0 0 0 1.8px var(--line), 0 6px 14.4px rgba(11, 42, 74, .2); }
.d .bubble { border-radius: 44px; padding: 40px 44px 44px; box-shadow: inset 0 0 0 3px var(--line), 0 10px 24px rgba(11, 42, 74, .2); }
.hello { margin: 0; font-weight: 600; line-height: 1.2; }
.m .hello { font-size: 18px; }
.d .hello { font-size: 25px; }
.qtext { margin: 0; font-family: 'Dela Gothic One', sans-serif; font-weight: 400; line-height: 1.2; }
.d .qtext { white-space: pre-line; }  /* 25.11 клиент: на десктопе вторая фраза вопроса («Как…») с новой строки */
.m .qtext { font-size: 18px; }
.d .qtext { font-size: 30px; }
.m .cta-row { margin-top: 12px; }
.d .cta-row { margin-top: 28px; }

/* ===== кнопки ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  color: #fff; transition: transform .12s ease, filter .12s ease; }
.btn:active { transform: scale(.97); }
@media (hover: hover) { .btn:hover { filter: brightness(1.06); } }
.btn.red { background: var(--red); }
.btn.blue { background: var(--blue); }
.btn.outline { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.m .btn.cta { height: 34.8px; padding: 0 24px; font-size: 11.4px; }
.d .btn.cta { height: 58px; padding: 0 40px; font-size: 19px; }

/* ===== варианты ответа ===== */
.choices { background: var(--cream); display: flex; flex-direction: column; }
.m .choices { border-radius: 26.64px; padding: 11px; gap: 4.4px; box-shadow: inset 0 0 0 2.22px var(--line), 0 7.4px 17.76px rgba(11, 42, 74, .2); }
.d .choices { border-radius: 36px; padding: 18px; gap: 6px; box-shadow: inset 0 0 0 3px var(--line), 0 10px 24px rgba(11, 42, 74, .2); }
.opt { display: flex; align-items: flex-start; text-align: left; width: 100%; font-weight: 600; line-height: 1.2; color: var(--ink); transition: background .15s ease, color .15s ease; }
.m .opt { padding: 7.2px 11.84px; border-radius: 16.28px; gap: 8.88px; font-size: 15.5px; }
.d .opt { padding: 12px 16px; border-radius: 22px; gap: 12px; font-size: 19px; }
.opt .ptr { flex: none; display: flex; justify-content: center; }
.m .opt .ptr { width: 14.8px; height: 19px; }
.d .opt .ptr { width: 20px; height: 23px; }
.opt .ptr svg { width: 20px; height: 20px; flex: none; opacity: 0; transform: scale(.6); transition: opacity .15s ease, transform .2s ease; }
.m .opt .ptr svg { margin-top: -.5px; }
.d .opt .ptr svg { margin-top: 1.5px; }
.opt.sel { background: #ddeeff; color: var(--blue); font-weight: 700; }
.opt.sel .ptr svg { opacity: 1; transform: none; }
@media (hover: hover) {
  .opt:hover { background: #ddeeff; color: var(--blue); font-weight: 700; }
  .opt:hover .ptr svg { opacity: 1; transform: none; }
}
.choices.locked .opt:not(.sel) { pointer-events: none; }
/* 25.11 клиент: на телефоне нет курсора — тонкая линия между вариантами */
.opt { position: relative; }
.opt + .opt::before { content: ''; position: absolute; left: 14px; right: 14px; height: 1.5px; border-radius: 1px; background: #eadcc0; pointer-events: none; transition: opacity .15s ease; }
.m .opt + .opt::before { top: -2.95px; }
.d .opt + .opt::before { top: -3.75px; left: 18px; right: 18px; }
.opt.sel::before, .opt.sel + .opt::before { opacity: 0; }
@media (hover: hover) { .opt:hover::before, .opt:hover + .opt::before { opacity: 0; } }

/* ===== записки бренда ===== */
.note { position: relative; background: #fffdf5; box-shadow: 0 4.8px 11.2px rgba(11, 42, 74, .2); display: flex; flex-direction: column; align-items: flex-start; }
.note.gold { }  /* 26.11 клиент: обводки у записок убраны везде — единый стиль */
.note .pin { position: absolute; border-radius: 50%; background: var(--red); }
.note.gold .pin { background: var(--gold); }
.note .nt-label { font-weight: 700; color: #c99520; line-height: 1; letter-spacing: .02em; }
.note .nt-title { margin: 0; font-family: 'Dela Gothic One', sans-serif; font-weight: 400; color: var(--blue); line-height: .95; }
.note .nt-text { margin: 0; font-weight: 500; line-height: 1.2; }
.note .more { display: inline-flex; align-items: center; color: var(--blue); font-weight: 700; line-height: 1.2; }
.note .more svg { width: 12px; height: 12px; transition: transform .2s ease; }
.note.open .more svg { transform: rotate(180deg); }
.note .btn { margin-top: var(--bgap); }
/* мобилка, главная */
.m .note.main { width: 350px; border-radius: 7.6px; padding: 12.16px; gap: 6.08px; --bgap: 15.18px; }
.m .note.main .pin { width: 12.2px; height: 12.2px; left: 168.8px; top: -2.2px; }
.m .note.main .nt-title { font-size: 14.44px; }
.m .note.main .nt-text { font-size: 13px; }
.m .note.main .more { font-size: 10.64px; gap: 4.56px; }
.m .note.main .btn { height: 33.4px; padding: 0 16.72px; font-size: 11.4px; }
/* мобилка, результат */
.m .note.res { width: 350px; border-radius: 8px; padding: 11px 12.8px 12px; gap: 6px; --bgap: 6px; }
.m .note.res.gold { --gw: 2px; }
.m .note.res .pin { width: 12.8px; height: 12.8px; left: 168.5px; top: -3px; }
.m .note.res .nt-label { font-size: 10px; }
.m .note.res .nt-title { font-size: 15.2px; }
.m .note.res .nt-text { font-size: 13px; }
.m .note.res .more { font-size: 11.2px; gap: 4.8px; }
.m .note.res .btn { height: 35.2px; padding: 0 17.6px; font-size: 12px; }
/* десктоп, главная */
.d .note.main { width: 340px; border-radius: 10px; padding: 16px; gap: 8px; --bgap: 20px; box-shadow: 0 6px 14px rgba(11, 42, 74, .2); }
.d .note.main .pin { width: 16px; height: 16px; left: 162px; top: -3px; }
.d .note.main .nt-title { font-size: 19px; }
.d .note.main .nt-text { font-size: 15px; }
.d .note.main .more { font-size: 14px; gap: 6px; }
.d .note.main .btn { height: 44px; padding: 0 22px; font-size: 15px; }
/* десктоп, результат */
.d .note.res { width: 290px; border-radius: 9px; padding: 14.4px; gap: 7.2px; --bgap: 18px; box-shadow: 0 5.4px 12.6px rgba(11, 42, 74, .2); }
.d .note.res.gold { }
.d .note.res .pin { width: 14.4px; height: 14.4px; left: 137.8px; top: -3.5px; }
.d .note.res .nt-label { font-size: 10.35px; }
.d .note.res .nt-title { font-size: 17.1px; }
.d .note.res .nt-text { font-size: 13.5px; }
.d .note.res .more { font-size: 12.6px; gap: 5.4px; }
.d .note.res .btn { height: 39.6px; padding: 0 19.8px; font-size: 13.5px; }

/* снимки с праздников в записке */
.shots { position: relative; flex: none; }
.m .shots { width: 325.7px; height: 119px; }
.d .shots { width: 308px; height: 120px; }
.pola { position: absolute; background: #fff; border-radius: 3px; box-shadow: 0 8px 18px rgba(11, 42, 74, .2); }
.pola .ph { position: absolute; overflow: hidden; background: #eaf5ff; }
.pola .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); }
.tape { position: absolute; background: rgba(255, 231, 168, .9); }

/* ===== письмо с результатом ===== */
.letter { position: relative; background: radial-gradient(circle, rgba(255, 255, 255, .85) 0 1.1px, transparent 1.6px) 6px 1.5px / 16px 6px repeat-x, #bfe0ff; border: solid var(--gold); }  /* как в макете: белые точки только по верхней кромке */
.d .letter { background-size: 24px 9px; background-position: 9px 3px, 0 0; }
.m .letter { width: 366px; border-width: 2.5px; border-radius: 16.5px; padding: 9.6px; box-shadow: 0 8.8px 18.7px rgba(11, 42, 74, .2); }
.d .letter { width: 600px; border-width: 3px; border-radius: 30px; padding: 19px; box-shadow: 0 16px 34px rgba(11, 42, 74, .2); }
.paper { background: #fffdf7; display: flex; flex-direction: column; }
.m .paper { border-radius: 11px; padding: 14px 22px 14px; gap: 12px; }
.d .paper { border-radius: 20px; padding: 28px 40px; gap: 14px; }  /* 26.11: плотнее — записки с кнопками в первом экране */
.plates { position: relative; flex: none; }
.plates span { position: absolute; left: 0; display: inline-block; white-space: nowrap; font-family: 'Dela Gothic One', sans-serif; font-weight: 400; line-height: 1.2; color: #fff; }
.plates span.b { background: var(--blue); transform: rotate(-1.2deg); }
.plates span.r { background: var(--red); transform: rotate(1deg); }
.m .plates span { font-size: 20.8px; padding: 2.6px 8.32px; }
.d .plates span { font-size: 32.8px; padding: 4.1px 13.12px; }
.desc { margin: 0; font-weight: 500; line-height: 1.2; }
.m .desc { font-size: 14px; }
.d .desc { font-size: 17px; }
.actions { display: flex; }
.m .actions { flex-direction: column; align-items: center; gap: 6px; margin-top: 0; }
.m .actions .btn { width: 100%; }
.m .actions .send { height: 44px; font-size: 16px; }
.m .actions .dl { height: 40px; font-size: 15px; }
.m .again { font-size: 14px; }
.d .actions { flex-direction: row; gap: 10px; margin-top: 8px; }
.d .actions .send { height: 50px; padding: 0 24px; font-size: 16px; }
.d .actions .dl { height: 50px; padding: 0 22px; font-size: 16px; }
.d .again { font-size: 15px; line-height: 1.45; align-self: flex-start; }
.again { color: var(--blue); font-weight: 700; line-height: 1.2; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }  /* 25.11 клиент: видно, что это ссылка */
@media (hover: hover) { .again:hover { text-decoration-thickness: 2.5px; } }
.tip { display: flex; flex-direction: column; gap: 6px; }
.m .tip { margin-top: 0; }
.d .tip { margin-top: 8px; }
.tip b { color: var(--red); font-weight: 700; line-height: 1.2; }
.tip p { margin: 0; font-weight: 500; line-height: 1.2; }
.m .tip b, .m .tip p { font-size: 13px; }
.d .tip b, .d .tip p { font-size: 15px; }
/* подарок-полароид с предметом должности */
.gift { position: absolute; background: #fff; border: solid var(--gold); box-shadow: 0 3.3px 7.7px rgba(11, 42, 74, .2); }
.gift .in { position: absolute; background: #e3f0ff; display: flex; align-items: center; justify-content: center; }
.gift .in img { width: 94%; height: 94%; object-fit: contain; display: block; }
.m .gift { width: 116px; height: 116px; border-width: 1.1px; border-radius: 3.3px; transform: rotate(7deg); }
.m .gift .in { left: 3.8px; top: 3.8px; right: 3.8px; bottom: 3.8px; border-radius: 2.2px; }
.d .gift { width: 150px; height: 150px; border-width: 1.8px; border-radius: 5.4px; transform: rotate(6deg); box-shadow: 0 5.4px 12.6px rgba(11, 42, 74, .2); }
.d .gift .in { left: 5.4px; top: 5.4px; right: 5.4px; bottom: 5.4px; border-radius: 3.6px; }

/* ===== подвал ===== */
.foot { font-weight: 500; line-height: 1.4; color: #1c1c1c; white-space: nowrap; }
.foot button { font-weight: 500; }
@media (hover: hover) { .foot button:hover { text-decoration: underline; } }
.m .foot { font-size: 12px; }
.d .foot { font-size: 13px; }
.foot-pad { background: rgba(230, 236, 248, .9); border-radius: 28px; filter: blur(12px); }  /* в макете подложка размыта — мягкая дымка под текстом */
.logo { filter: drop-shadow(0 1px 8px rgba(11, 26, 58, .5)); }

/* ===== всплывашка ===== */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px;
  background: rgba(28, 28, 28, .92); color: #fff; font: 600 14px/1.3 'Montserrat', sans-serif; text-align: center; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 10; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { #art, .opt, .btn, #toast { transition: none; } }
