/* «Бизнес Тиндер» — фирменный стиль (вариант 4 + знак «Свайп», 06.11.2026).
   Светлый фон, кобальтовый синий, белые карточки, системный шрифт. Знак — img/logo.svg. */
:root {
  --ink: #F4F5F9;        /* фон */
  --ink-2: #FFFFFF;      /* поверхности */
  --ink-3: #E1E4EE;      /* рамки, неактивное */
  --cream: #FFFFFF;      /* карточки */
  --cream-2: #F1F2F7;
  --text: #0B1020;
  --muted: #8A90A2;
  --orange: #2340FF;     /* главный акцент (кобальт): «поболтаем?» */
  --orange-2: #4A63FF;
  --green: #3DDC97;
  --card-ink: #0B1020;
  --r: 22px;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font: 15px/1.4 var(--body); overscroll-behavior: none; }
body { -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
#app { min-height: 100%; padding-bottom: calc(76px + var(--safe-b)); }

/* --- загрузка --- */
.boot { height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; }
.boot-logo { width: 84px; animation: pulse 1.2s ease-in-out infinite; }
.boot-word { font: 800 22px var(--display); letter-spacing: -.02em; }
@keyframes pulse { 50% { transform: scale(.92); } }

/* --- бренд в шапке --- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 8px; }
.brand { display: flex; align-items: center; gap: 9px; font: 800 19px var(--display); letter-spacing: -.03em; }
.brand img { width: 30px; }
.top .hint { color: var(--muted); font-size: 13px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; margin: 0; }
h1 { font-size: 28px; line-height: 1.08; font-weight: 800; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.accent { color: var(--orange); }
.wrap { padding: 6px 18px 24px; }
.muted { color: var(--muted); }

/* --- кнопки --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px;
  border-radius: 16px; font: 700 15px var(--display); letter-spacing: -.01em; background: var(--orange); color: #fff;
  transition: transform .12s, opacity .2s; width: 100%; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--ink-2); color: var(--text); border: 1px solid var(--ink-3); }
.btn.light { background: var(--card-ink); color: #fff; }
.btn.small { height: 40px; font-size: 13px; padding: 0 16px; border-radius: 12px; width: auto; }
.btn[disabled] { opacity: .4; }
.row { display: flex; gap: 10px; }

/* --- онбординг --- */
.hero { padding: 22px 18px 6px; }
.hero h1 { margin: 18px 0 10px; }
.hero p { color: var(--muted); margin: 0; font-size: 15px; }
.steps { display: flex; gap: 6px; padding: 18px 18px 4px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--ink-3); }
.steps i.on { background: var(--orange); }
.form { padding: 10px 18px 24px; display: grid; gap: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin: 0 0 6px 4px; }
.field input, .field textarea { width: 100%; background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 14px;
  padding: 14px 15px; outline: none; transition: border-color .15s; resize: none; }
.field input:focus, .field textarea:focus { border-color: var(--orange); }
.field .count { float: right; font-size: 11px; color: var(--muted); margin-top: 4px; }
.photo-pick { display: flex; align-items: center; gap: 14px; }
.photo-pick .ava { width: 76px; height: 76px; border-radius: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 14px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--ink-3); font-size: 14px;
  transition: all .15s; }
.chip.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.chip.dis { opacity: .35; }
.sub { font-size: 13px; color: var(--muted); margin: -4px 0 0 4px; }

/* --- аватар --- */
.ava { background: linear-gradient(135deg, var(--h1, #FF5A1F), var(--h2, #7A2E12)); display: grid; place-items: center;
  font: 800 22px var(--display); color: #fff; overflow: hidden; flex: none; background-size: cover; background-position: center; }

/* --- колода --- */
.deck { position: relative; height: calc(100vh - 210px - var(--safe-b)); min-height: 430px; margin: 4px 14px 0; }
.card { position: absolute; inset: 0; background: var(--cream); color: var(--card-ink); border-radius: 28px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 14px 34px rgba(20,30,80,.14); border: 1px solid var(--ink-3); touch-action: none; user-select: none;
  will-change: transform; }
.card.back { transform: scale(.95) translateY(14px); filter: brightness(.96); opacity: .7; transition: transform .25s, filter .25s; }
.card .pic { position: relative; flex: 1 1 58%; min-height: 0; background-size: cover; background-position: center 25%; }
.card .pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11,16,32,.75)); }
.card .pic .ava { position: absolute; inset: 0; font-size: 84px; border-radius: 0; }
.card .who { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2; color: #fff; }
.card .who b { display: block; font: 800 26px/1.05 var(--display); letter-spacing: -.03em; }
.card .who span { display: block; margin-top: 5px; font-size: 14px; opacity: .85; }
.card .ribbon { position: absolute; top: 14px; left: 14px; z-index: 3; background: var(--orange); color: #fff; padding: 7px 12px;
  border-radius: 999px; font: 700 12px var(--display); box-shadow: 0 6px 18px rgba(35,64,255,.4); }
.card .info { flex: 0 1 auto; padding: 14px 18px 16px; display: grid; gap: 10px; overflow: hidden; }
.card .why { background: #EEF1FF; color: var(--orange); border-radius: 14px; padding: 9px 12px; font-size: 13px; font-weight: 600; }
.card .why.soft { background: #F1F2F7; color: #4A5068; }
.card .about { font-size: 15px; line-height: 1.35; }
.card .tagline { display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; font-size: 12px; }
.card .tagline em { font-style: normal; color: #8A90A2; margin-right: 2px; }
.card .tagline i { font-style: normal; background: var(--cream-2); padding: 4px 9px; border-radius: 999px; font-weight: 600; }
.stamp { position: absolute; top: 40px; z-index: 4; padding: 8px 14px; border: 4px solid; border-radius: 14px;
  font: 800 26px var(--display); letter-spacing: -.02em; opacity: 0; transform: rotate(-14deg); pointer-events: none; }
.stamp.yes { left: 22px; color: var(--orange); border-color: var(--orange); background: rgba(255,255,255,.9); }
.stamp.no { right: 22px; color: #6B7186; border-color: #6B7186; transform: rotate(14deg); background: rgba(255,255,255,.9); }
.actions { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 16px 0 6px; }
.act { width: 62px; height: 62px; border-radius: 50%; background: var(--ink-2); border: 1px solid var(--ink-3);
  display: grid; place-items: center; transition: transform .12s; }
.act:active { transform: scale(.9); }
.act svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.act.undo { width: 46px; height: 46px; color: var(--muted); }
.act.undo svg { width: 20px; height: 20px; }
.act.yes { width: auto; height: 62px; border-radius: 31px; padding: 0 26px 0 20px; background: var(--orange); border: 0; color: #fff;
  gap: 8px; display: flex; font: 700 16px var(--display); box-shadow: 0 10px 26px rgba(35,64,255,.35); border-radius: 18px; }
.act.yes img { width: 28px; }
.empty { text-align: center; padding: 40px 26px; display: grid; gap: 14px; justify-items: center; }
.empty img { width: 64px; opacity: .9; }
.empty p { color: var(--muted); margin: 0; }

/* --- пара! --- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(244,245,249,.96); backdrop-filter: blur(8px);
  display: grid; place-content: center; justify-items: center; gap: 18px; padding: 30px; text-align: center; animation: fade .25s; }
.overlay h1 { font-size: 44px; color: var(--orange); }
.overlay p { color: var(--muted); margin: 0; max-width: 300px; }
.pair { display: flex; align-items: center; }
.pair .ava { width: 112px; height: 112px; border-radius: 50%; border: 5px solid var(--ink); font-size: 38px; }
.pair .ava:first-child { border-color: var(--orange); transform: rotate(-8deg); animation: inL .5s cubic-bezier(.2,1.4,.4,1); }
.pair .ava:last-child { margin-left: -26px; border-color: #8EA0FF; transform: rotate(8deg); animation: inR .5s cubic-bezier(.2,1.4,.4,1); }
.overlay .btns { display: grid; gap: 10px; width: min(320px, 86vw); }
@keyframes inL { from { transform: translateX(-120px) rotate(-30deg); opacity: 0; } }
@keyframes inR { from { transform: translateX(120px) rotate(30deg); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* --- списки: пары, входящие, предложения --- */
.list { display: grid; gap: 10px; }
.item { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 20px; padding: 14px; display: grid; gap: 12px; }
.item .head { display: flex; gap: 12px; align-items: center; }
.item .ava { width: 52px; height: 52px; border-radius: 16px; font-size: 18px; }
.item .head b { display: block; font-weight: 700; font-size: 16px; }
.item .head span { display: block; color: var(--muted); font-size: 13px; }
.item .note { font-size: 13px; color: var(--orange-2); }
.item .row .btn { height: 44px; font-size: 14px; }
.section { display: grid; gap: 12px; margin-top: 22px; }
.section:first-child { margin-top: 6px; }
.count-pill { display: inline-block; background: var(--orange); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 6px; vertical-align: 2px; }

.offer { background: var(--cream); color: var(--card-ink); border: 1px solid var(--ink-3); border-radius: 22px; padding: 18px; display: grid; gap: 10px; position: relative; overflow: hidden; }
.offer::before { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
  border: 14px solid rgba(35,64,255,.08); }
.offer .t { font: 700 18px/1.15 var(--display); letter-spacing: -.02em; padding-right: 30px; }
.offer .d { font-size: 14px; color: #4A5068; white-space: pre-line; }
.offer .by { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #6B7186; }
.offer .by .ava { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
.offer .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.offer .taken { font-size: 12px; color: #8A90A2; }
.offer .btn { width: auto; height: 42px; font-size: 14px; }
.offer .btn.light { background: var(--card-ink); color: var(--cream); }
.offer.mine { background: var(--ink-2); color: var(--text); border: 1px dashed var(--orange); }
.offer.mine .d, .offer.mine .taken { color: var(--muted); }
.fab-add { border: 1.5px dashed var(--ink-3); border-radius: 22px; padding: 18px; text-align: left; display: grid; gap: 4px; }
.fab-add b { font: 700 16px var(--display); color: var(--orange); }
.fab-add span { color: var(--muted); font-size: 13px; }

/* --- профиль --- */
.me-card { background: var(--cream); color: var(--card-ink); border-radius: 26px; overflow: hidden; border: 1px solid var(--ink-3); }
.me-card .pic { height: 210px; background-size: cover; background-position: center 25%; position: relative; }
.me-card .pic .ava { position: absolute; inset: 0; font-size: 64px; border-radius: 0; }
.me-card .body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.me-card .body b { font: 800 22px var(--display); letter-spacing: -.03em; }
.qr-box { background: var(--cream); border: 1px solid var(--ink-3); border-radius: 26px; padding: 22px; display: grid; justify-items: center; gap: 12px; color: var(--card-ink); text-align: center; }
.qr-box .qr { width: 220px; height: 220px; position: relative; }
.qr-box .qr svg { width: 100%; height: 100%; display: block; }
.qr-box .qr img { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%,-50%);
  background: #fff; border-radius: 12px; padding: 5px; }
.qr-box b { font: 700 16px var(--display); }
.qr-box span { font-size: 13px; color: #6B7186; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 16px; padding: 12px; }
.stats b { display: block; font: 800 22px var(--display); }
.stats span { font-size: 12px; color: var(--muted); }
.switch { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--ink-2);
  border: 1px solid var(--ink-3); border-radius: 16px; }
.switch i { width: 46px; height: 28px; border-radius: 14px; background: var(--ink-3); position: relative; transition: background .2s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on i { background: var(--orange); }
.switch.on i::after { transform: translateX(18px); }

/* --- нижнее меню --- */
#tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px); border-top: 1px solid var(--ink-3); padding: 6px 6px calc(6px + var(--safe-b)); }
#tabs button { flex: 1; display: grid; justify-items: center; gap: 3px; padding: 6px 0; color: var(--muted); font-size: 11px; position: relative; }
#tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#tabs button.on { color: var(--orange); }
#tabs .badge { position: absolute; top: 2px; left: 50%; margin-left: 6px; background: var(--orange); color: #fff; font-size: 11px;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; font-style: normal; }

/* --- всплывашка и листы --- */
#toast { position: fixed; left: 16px; right: 16px; top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 60; background: var(--card-ink);
  color: #fff; padding: 13px 16px; border-radius: 16px; font-weight: 600; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.4);
  animation: down .25s; }
@keyframes down { from { transform: translateY(-20px); opacity: 0; } }
@keyframes up { from { transform: translateY(20px); opacity: 0; } }
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(11,16,32,.4); animation: fade .2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--ink-2); border-radius: 26px 26px 0 0;
  padding: 10px 18px calc(22px + var(--safe-b)); display: grid; gap: 14px; animation: up .25s; max-height: 92vh; overflow: auto; }
.sheet::before { content: ''; width: 40px; height: 4px; border-radius: 2px; background: var(--ink-3); justify-self: center; }

/* --- второй круг и доска объявлений (06.11.2026) --- */
.card .ribbon.seen { background: rgba(11,16,32,.72); box-shadow: none; }
.seg { display: flex; background: #E9EBF2; border-radius: 14px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.seg button { flex: 1; height: 38px; border-radius: 11px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 2px 8px rgba(20,30,80,.08); }
.sheet .seg { margin-bottom: 0; }
.offer .kind { justify-self: start; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: #EEF1FF; color: var(--orange); }
.offer.k-need .kind { background: #0B1020; color: #fff; }

/* --- фото обязательно (06.11.2026) --- */
.photo-pick { align-items: center; }
.photo-pick .ava { width: 84px; height: 84px; border-radius: 24px; }
.photo-pick.need .ava { outline: 2px dashed var(--orange); outline-offset: 3px; }
.photo-pick .pbtns { display: grid; gap: 8px; flex: 1; }
.photo-pick .pbtns .row { gap: 8px; flex-direction: column; }
.photo-pick .pbtns .btn { width: 100%; height: 40px; padding: 0 12px; }
.photo-pick .sub { margin: 0; }
.photo-pick.need .sub { color: var(--orange); font-weight: 600; }

/* --- ссылка на сайт / соцсеть (06.11.2026) --- */
a.site { justify-self: start; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: var(--orange); text-decoration: none; background: #EEF1FF; padding: 5px 10px; border-radius: 10px; }

/* --- метка автора приложения (06.11.2026) --- */
.card .ribbon.author { display: flex; align-items: center; gap: 6px; background: #0B1020; padding: 6px 12px 6px 7px; }
.card .ribbon.author img { width: 18px; height: 18px; }

/* --- удобная правка анкеты (06.11.2026): многострочные поля растут по тексту --- */
.field textarea { min-height: 54px; line-height: 1.4; overflow: hidden; font-size: 16px; }
.field input { font-size: 16px; }  /* 16px — iOS не увеличивает страницу при фокусе */
.field .count { float: none; display: block; text-align: right; }
.form { padding-bottom: 40vh; }    /* место под клавиатуру, чтобы нижнее поле можно было поднять */

/* --- курсор и поля в тёмной теме Telegram (06.11.2026): страница всегда светлая, курсор кобальтовый --- */
:root { color-scheme: light only; }
input, textarea { caret-color: #2340FF; color: #0B1020; -webkit-text-fill-color: #0B1020; background-color: #fff; }
input::placeholder, textarea::placeholder { color: #A3A8B8; -webkit-text-fill-color: #A3A8B8; }

/* --- «Как меня видят» (06.11.2026) --- */
.overlay.preview { align-content: start; padding: 18px 16px calc(18px + var(--safe-b)); overflow: auto; gap: 14px; }
.pv-title { font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.pv-deck { position: relative; width: min(360px, 92vw); height: min(560px, 64vh); text-align: left; }
.pv-deck .card { touch-action: auto; }
.pv-deck .stamp { display: none; }

/* --- удаление анкеты (06.11.2026) --- */
.danger-link { color: #E5484D; font-weight: 600; font-size: 14px; padding: 10px; justify-self: center; }
.btn.danger { background: #E5484D; color: #fff; }

/* --- закреплённые объявления автора (06.11.2026) --- */
.offer .kinds { display: flex; gap: 6px; flex-wrap: wrap; }
.offer .kind.pin { background: #0B1020; color: #fff; text-transform: none; letter-spacing: 0; }
.offer:has(.pin) { border: 1.5px solid var(--orange); box-shadow: 0 10px 26px rgba(35,64,255,.12); }

/* --- отклики на доске: только после «Давай» автора (06.11.2026) --- */
.offer .took { font-size: 13px; font-weight: 700; color: var(--muted); }
.offer .took.ok { color: #16A37A; }

/* --- камера в приложении (06.11.2026) --- */
.cam { position: fixed; inset: 0; z-index: 70; background: #000; display: grid; place-items: center; }
.cam video { width: 100%; height: 100%; object-fit: cover; }
.cam video.mirror { transform: scaleX(-1); }
.cam-frame { position: absolute; width: min(78vw, 60vh); aspect-ratio: 1; border: 3px solid rgba(255,255,255,.9); border-radius: 28px;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); pointer-events: none; }
.cam-bar { position: absolute; left: 0; right: 0; bottom: calc(26px + var(--safe-b)); display: flex; align-items: center; justify-content: space-around; }
.cam-btn { color: #fff; font-weight: 600; font-size: 15px; padding: 12px; min-width: 90px; }
.cam-shot { width: 76px; height: 76px; border-radius: 50%; background: #fff; border: 6px solid rgba(255,255,255,.4); background-clip: padding-box; }
.cam-shot:active { transform: scale(.92); }
