/* modelo.oritorepublic.com — публичный портал */

.wrap-page { max-width: 980px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap-page { padding: 0 18px; } }

/* ── Шапка ── */
.topbar {
  position: sticky; top: 0; z-index: 40; background: rgba(247,245,241,.92);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-size: 15px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; }
.logo span { color: var(--accent); }
.lang-switch { display: flex; gap: 2px; align-items: center; }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer; padding: 6px 9px; border-radius: 100px;
  font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-30);
}
.lang-switch button[aria-pressed="true"] { color: var(--ink); background: var(--surface-2); }

/* ── Лендинг ── */
.hero { padding: 68px 0 40px; }
.hero .display { max-width: 13ch; }
.hero-accent { color: var(--accent); }
.hero-sub { margin-top: 26px; max-width: 46ch; font-size: 18px; color: var(--ink-70); }
.hero-cta { margin-top: 38px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-meta div { min-width: 96px; }
.hero-meta .v { font-size: 26px; font-weight: 300; letter-spacing: -.02em; }

.steps-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 56px 0; }
.steps-preview > div { background: var(--surface); padding: 26px 22px; }
.steps-preview .n { font-size: 11px; letter-spacing: .16em; color: var(--accent); font-weight: 500; }
.steps-preview .t { margin-top: 12px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.steps-preview .d { margin-top: 6px; font-size: 13.5px; color: var(--ink-50); line-height: 1.45; }
@media (max-width: 860px) { .steps-preview { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps-preview { grid-template-columns: 1fr; } }

.faq { margin: 0 0 70px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 20px 0; cursor: pointer; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq .a { padding: 0 0 20px; color: var(--ink-70); max-width: 68ch; font-size: 15px; }

/* ── Мастер анкеты ── */
.wizard-head { position: sticky; top: 62px; z-index: 30; background: var(--bg); padding-top: 18px; border-bottom: 1px solid var(--line); }
.progress-track { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 14px; }
.progress-fill { height: 100%; background: var(--accent); transition: width .45s cubic-bezier(.2,.8,.2,1); }
.step-tabs { display: flex; gap: 4px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.step-tabs::-webkit-scrollbar { display: none; }
.step-tab {
  flex: 0 0 auto; border: 0; background: transparent; cursor: pointer; padding: 7px 13px; border-radius: 100px;
  font-size: 12px; letter-spacing: .06em; color: var(--ink-30); display: flex; align-items: center; gap: 7px; white-space: nowrap;
}
.step-tab[aria-current="true"] { background: var(--ink); color: #fff; }
.step-tab.done { color: var(--ink-70); }
.step-tab.done .num { background: var(--ok); border-color: var(--ok); color: #fff; }
.step-tab .num {
  width: 19px; height: 19px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center;
  font-size: 10px; font-variant-numeric: tabular-nums;
}
.autosave { font-size: 11.5px; color: var(--ink-30); display: flex; align-items: center; gap: 6px; min-height: 17px; }
.autosave.ok { color: var(--ok); }

.step-panel { padding: 42px 0 130px; animation: fadeUp .3s ease both; }
.step-title { margin-bottom: 6px; }
.step-lead { color: var(--ink-50); margin-bottom: 38px; font-size: 15px; max-width: 56ch; }
.section-label { margin: 44px 0 20px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }

.wizard-foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  background: rgba(247,245,241,.95); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  padding: 13px 0 calc(13px + env(safe-area-inset-bottom));
}
.wizard-foot .inner { max-width: 980px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 12px; }
@media (max-width: 600px) { .wizard-foot .inner { padding: 0 18px; } .wizard-foot .btn { flex: 1; padding: 15px 18px; } }

.minor-box { margin-top: 12px; padding: 22px 22px 4px; background: var(--accent-soft); border-radius: var(--r-lg); animation: fadeUp .3s ease both; }
.minor-box .eyebrow { color: var(--accent); }

/* ── Загрузка фото ── */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; } }

.slot {
  position: relative; aspect-ratio: 3/4; border: 1px dashed var(--line-strong); border-radius: var(--r);
  background: var(--surface); cursor: pointer; overflow: hidden; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; padding: 14px; text-align: center;
  transition: border-color .15s, background .15s; -webkit-tap-highlight-color: transparent;
}
.slot:hover, .slot.drag { border-color: var(--ink); background: var(--surface-2); }
.slot.filled { border-style: solid; border-color: var(--line); background: var(--ink); cursor: default; }
.slot.error { border-color: var(--danger); background: var(--danger-soft); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot .figure { width: 54px; height: 72px; opacity: .75; margin-bottom: 2px; }
.slot .slot-name { font-size: 12px; font-weight: 500; letter-spacing: .02em; line-height: 1.25; }
.slot .slot-hint { font-size: 10.5px; color: var(--ink-50); line-height: 1.3; }
.slot .slot-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 8px; border-radius: 100px;
  background: rgba(10,10,10,.72); color: #fff; font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.slot .slot-remove {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); cursor: pointer; display: grid; place-items: center;
  font-size: 15px; line-height: 1; color: var(--ink); box-shadow: var(--shadow-sm);
}
.slot-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.25); z-index: 2; }
.slot-progress i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.slot .err-text { position: absolute; inset: auto 8px 8px; z-index: 3; font-size: 10.5px; color: var(--danger); background: rgba(255,255,255,.94); padding: 5px 7px; border-radius: var(--r-sm); }

.rules { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 30px; }
.rule { font-size: 12px; padding: 5px 12px; border-radius: 100px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-70); }
.rule.no { color: var(--danger); border-color: #F0C7C2; background: var(--danger-soft); }

.extra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 11px; }
.extra-tile { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.extra-tile img { width: 100%; height: 100%; object-fit: cover; }
.extra-add { border: 1px dashed var(--line-strong); display: grid; place-items: center; cursor: pointer; font-size: 26px; color: var(--ink-30); background: var(--surface); }
.extra-add:hover { border-color: var(--ink); color: var(--ink); }

/* Видео */
.video-zone { border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface); padding: 26px; cursor: pointer; transition: all .15s; }
.video-zone:hover, .video-zone.drag { border-color: var(--ink); background: var(--surface-2); }
.video-zone.filled { border-style: solid; cursor: default; padding: 0; overflow: hidden; }
.video-preview { display: flex; gap: 0; align-items: stretch; }
.video-preview .poster { width: 152px; flex: 0 0 auto; background: var(--ink); position: relative; }
.video-preview .poster img, .video-preview .poster video { width: 100%; height: 100%; object-fit: cover; }
.video-preview .meta { padding: 20px 22px; flex: 1; min-width: 0; }
@media (max-width: 560px) { .video-preview { flex-direction: column; } .video-preview .poster { width: 100%; height: 190px; } }

.script-list { counter-reset: s; margin: 16px 0 0; padding: 0; list-style: none; }
.script-list li { counter-increment: s; position: relative; padding: 7px 0 7px 34px; font-size: 14.5px; color: var(--ink-70); border-bottom: 1px solid var(--line); }
.script-list li:last-child { border-bottom: 0; }
.script-list li::before {
  content: counter(s); position: absolute; left: 0; top: 8px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 10.5px; display: grid; place-items: center; font-variant-numeric: tabular-nums;
}

/* ── Резюме ── */
.summary-block { border-top: 1px solid var(--line); padding: 22px 0; }
.summary-block .row-between { align-items: flex-start; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 24px; margin-top: 14px; }
.summary-grid .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-30); }
.summary-grid .v { font-size: 15.5px; margin-top: 3px; word-break: break-word; }
.edit-link { border: 0; background: transparent; cursor: pointer; color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; padding: 0; white-space: nowrap; }
.consents { margin-top: 12px; }
.consents .check { padding: 13px 0; border-bottom: 1px solid var(--line); }
.consent-optional { font-size: 10.5px; color: var(--ink-30); text-transform: uppercase; letter-spacing: .1em; margin-left: 6px; }

.alert { padding: 15px 18px; border-radius: var(--r); font-size: 14.5px; margin: 18px 0; border: 1px solid; }
.alert-error { background: var(--danger-soft); border-color: #F0C7C2; color: var(--danger); }
.alert-info { background: var(--accent-soft); border-color: #FFD3C4; color: #8A2600; }
.alert-ok { background: var(--ok-soft); border-color: #BFE0CD; color: var(--ok); }

/* ── Готово ── */
.done-wrap { padding: 80px 0 100px; text-align: center; }
.done-no { display: inline-block; margin: 26px 0; padding: 14px 28px; border: 1px solid var(--ink); border-radius: 100px; font-size: 21px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.next-list { max-width: 460px; margin: 30px auto 0; text-align: left; }
.next-list li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink-70); font-size: 15px; }

/* ── Публичный профиль ── */
.profile-head { padding: 46px 0 30px; border-bottom: 1px solid var(--line); }
.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 20px; margin-top: 32px; }
.profile-stats .k { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-30); }
.profile-stats .v { font-size: 22px; font-weight: 300; margin-top: 2px; font-variant-numeric: tabular-nums; }
.profile-gallery { columns: 3 220px; column-gap: 14px; padding: 34px 0 70px; }
.profile-gallery figure { margin: 0 0 14px; break-inside: avoid; background: var(--surface-2); border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.profile-gallery img, .profile-gallery video { width: 100%; display: block; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.96); display: grid; place-items: center; padding: 20px; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 92vh; object-fit: contain; }
.lightbox .x { position: absolute; top: 18px; right: 20px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; cursor: pointer; font-size: 20px; }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; cursor: pointer; font-size: 20px; }
.lightbox .nav.prev { left: 18px; } .lightbox .nav.next { right: 18px; }

.footer { border-top: 1px solid var(--line); padding: 30px 0 46px; font-size: 12.5px; color: var(--ink-30); }
.footer a { color: var(--ink-50); }

.center-card { max-width: 430px; margin: 90px auto; padding: 40px 34px; }

/* ─────────────────── Личный кабинет модели ─────────────────── */
/* Только вертикальные отступы: горизонтальные приходят от .wrap-page */
.account { padding-top: 28px; padding-bottom: 64px; }
.account-head { margin-bottom: 20px; }
.account-tabs { position: sticky; top: 0; z-index: 5; background: var(--bg); padding-top: 10px; margin-bottom: 20px; }
.account-body { --gap: 20px; }
.account-body > .stack > section, .account-body > .stack > .card { padding: 22px; }
.account-body .card { padding: 22px; }
.account-actions { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.account-actions .btn { width: 100%; }

.status-card { background: var(--surface); }
.missing-list { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.missing-list .next-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.tab-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* Метка «файл открыт клиентам»: удаление такого файла предупреждает команду */
.slot-public { position: absolute; top: 8px; left: 8px; z-index: 3; font-size: 11px; color: var(--accent);
  background: rgba(255,255,255,.92); border-radius: 100px; padding: 2px 7px; box-shadow: var(--shadow-sm); }
.slot-replace { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); border-radius: var(--r-sm); padding: 5px; font-size: 11px; color: var(--ink); }
.extra-tile .tile-ph { display: grid; place-items: center; height: 100%; font-size: 22px; color: var(--ink-30); }

.offer-grid { display: grid; gap: 6px; }
.offer-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.offer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.offer-replies { padding-top: 12px; border-top: 1px solid var(--line); }
.offer-ask { display: grid; gap: 8px; }
.badge-pending, .badge-question { background: var(--warn-soft); border-color: #E8D5AE; color: var(--warn); }
.badge-accepted { background: var(--ok-soft); border-color: #BFE0CD; color: var(--ok); }
.badge-declined, .badge-withdrawn { background: var(--danger-soft); border-color: #F0C7C2; color: var(--danger); }
.badge-expired { background: var(--surface-2); color: var(--ink-50); }

.danger-card { border-color: #F0C7C2; }
.danger-card .h3 { color: var(--danger); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.timeline li:last-child { border-bottom: 0; }
.tl-date { flex: 0 0 84px; color: var(--ink-30); font-size: 12px; }

@media (max-width: 640px) {
  .account-body .card { padding: 18px 16px; }
  .offer-row { flex-direction: column; gap: 2px; }
  .tl-date { flex-basis: 72px; }
}
.topbar-account { font-size: 12px; letter-spacing: .06em; color: var(--ink-70); text-decoration: none; padding: 7px 13px;
  border: 1px solid var(--line-strong); border-radius: 100px; white-space: nowrap; }
.topbar-account:hover { border-color: var(--ink); color: var(--ink); }

/* ── Дата рождения тремя полями ──
   Нативный <input type="date"> на iOS Safari не принимает ввод с клавиатуры,
   поэтому день, месяц и год — отдельные числовые поля. */
.bd-parts { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 10px; align-items: start; }
.bd-part { display: block; }
.bd-part .input { text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.bd-label { display: block; margin-top: 5px; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-30); text-align: center; }
.bd-field.invalid .bd-part .input { border-color: var(--danger); }

/* ── Выбор источника: снять сейчас или взять готовый файл ── */
.sheet-bg { position: fixed; inset: 0; z-index: 90; background: rgba(10,10,10,.45);
  backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 26px 22px calc(26px + env(safe-area-inset-bottom));
  width: 100%; max-width: 460px; text-align: center; animation: sheetUp .22s ease both; }
@keyframes sheetUp { from { transform: translateY(12px); opacity: 0 } to { transform: none; opacity: 1 } }
@media (min-width: 600px) { .sheet-bg { align-items: center; } .sheet { border-radius: var(--r-lg); } }

/* ── Съёмка в браузере (компьютер) ── */
.cam-bg { position: fixed; inset: 0; z-index: 95; background: rgba(10,10,10,.82);
  display: grid; place-items: center; padding: 18px; }
.cam-box { background: var(--surface); border-radius: var(--r-lg); width: 100%; max-width: 720px; overflow: hidden; }
.cam-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cam-close { border: 0; background: transparent; cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink-50); padding: 4px 8px; }
.cam-stage { position: relative; background: #000; aspect-ratio: 4/3; }
.cam-video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scaleX(-1); }
.cam-time { position: absolute; top: 12px; left: 12px; background: rgba(10,10,10,.7); color: #fff;
  padding: 4px 10px; border-radius: 100px; font-size: 12px; font-variant-numeric: tabular-nums; }
.cam-bg.cam-rec .cam-time::before { content: '●'; color: var(--accent); margin-right: 6px; }
.cam-status { padding: 14px 20px 0; font-size: 13.5px; color: var(--ink-50); text-align: center; min-height: 20px; }
.cam-status-error { color: var(--danger); }
.cam-controls { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 20px 22px; }
.cam-shutter { width: 62px; height: 62px; border-radius: 50%; border: 3px solid var(--ink);
  background: var(--surface); cursor: pointer; flex: 0 0 auto; transition: transform .12s; }
.cam-shutter::after { content: ''; display: block; width: 44px; height: 44px; margin: 6px auto; border-radius: 50%; background: var(--ink); }
.cam-shutter:hover { transform: scale(1.04); }
.cam-shutter:disabled { opacity: .4; cursor: not-allowed; }
.cam-bg.cam-rec .cam-shutter::after { border-radius: 6px; background: var(--accent); width: 30px; height: 30px; margin: 13px auto; }
