/* Шаблон «Сторис»: истории на весь экран телефона, на компьютере — по центру */
body.t-stories { background: #0E0C18; overflow: hidden; }
.t-stories .top, .t-stories .hero, .t-stories .foot, .t-stories .mbar { display: none !important; }
.t-stories .items { padding: 0; }
.st-wrap { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 26px; color: #fff; }
.st-blur { position: absolute; inset: -60px; background: radial-gradient(1000px 600px at 20% 0%, color-mix(in srgb, var(--brand) 55%, #120F22), transparent 60%), #120F22 center/cover; filter: blur(46px) brightness(.55); }
.st-frame { position: relative; width: min(430px, 100vw); height: min(860px, 100dvh); border-radius: 22px; overflow: hidden; background: #111; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.st-arrow { position: relative; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.st-arrow:hover { background: rgba(255, 255, 255, .24); }
.st-wrap.first .st-arrow.prev, .st-wrap.last .st-arrow.next { visibility: hidden; }

.st-bars { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 6; }
.st-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .32); }
.st-bars i.done, .st-bars i.cur { background: #fff; }
.st-hdr { position: absolute; top: 24px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; z-index: 6; font-size: 13px; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); pointer-events: none; }
.st-logo { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; font-weight: 800; overflow: hidden; border: 2px solid #fff; flex: none; }
.st-logo img { width: 100%; height: 100%; object-fit: contain; }
.st-count { margin-left: auto; opacity: .75; font-size: 12px; }

.st-slide { position: absolute; inset: 0; display: none; }
.st-slide.on { display: block; animation: st-in .25s ease; }
@keyframes st-in { from { opacity: .4; transform: scale(1.015); } to { opacity: 1; transform: none; } }
.st-item { position: absolute; inset: 0; }
.st-item[hidden] { display: none; }
.st-photo { position: absolute; inset: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 70%, #FF8A5B), #1B1340) center/cover no-repeat; }
.st-noph { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); opacity: .35; }
.st-noph .ic { width: 80px; height: 80px; stroke-width: 1.2; }
.st-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, .78) 66%, rgba(0, 0, 0, .92) 100%); }
.st-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); z-index: 3; max-height: calc(100% - 64px); overflow-y: auto; scrollbar-width: none; }
.st-kicker { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); padding: 5px 10px; border-radius: 99px; }
.st-kicker.rec { background: #FFCB3D; color: #2A1F00; }
.st-title { font-size: 27px; font-weight: 800; line-height: 1.12; margin: 8px 0 4px; letter-spacing: -.01em; }
.st-stars { color: #FFCB3D; font-size: 15px; letter-spacing: 1px; }
.st-place { font-size: 13.5px; opacity: .82; }
.t-stories .vars-box { margin: 10px 0 0; }
.t-stories .var { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fff; }
.t-stories .var b, .t-stories .var span, .t-stories .var i { color: #fff; }
.t-stories .var.on { background: #fff; }
.t-stories .var.on b, .t-stories .var.on span, .t-stories .var.on i { color: #111; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.st-chips span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 5px 9px; border-radius: 9px; background: rgba(255, 255, 255, .15); backdrop-filter: blur(6px); }
.st-note { font-size: 13.5px; background: rgba(255, 255, 255, .13); border-radius: 14px; padding: 9px 12px; margin-bottom: 12px; backdrop-filter: blur(6px); white-space: pre-line; }
.st-note b { display: block; font-size: 12px; opacity: .75; }
.t-stories .pflag { margin-bottom: 10px; }
.st-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.st-price s { font-size: 13px; opacity: .6; }
.st-sum { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.st-price small { display: block; font-size: 12px; opacity: .72; margin-top: 3px; }
.st-disc { background: #22C55E; color: #052E14; font-weight: 800; font-size: 13px; padding: 4px 8px; border-radius: 8px; }
.t-stories .opt-box { margin-top: 10px; }
.st-cta { display: flex; gap: 6px; margin-top: 14px; }
.st-cta button, .st-cta a { height: 50px; border-radius: 16px; border: 0; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.st-main { flex: 1; background: #fff; color: #111; }
.st-ghost { flex: 0 0 50px; background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); }
.st-ghost.pay { flex: 0 0 auto; padding: 0 14px; font-size: 13.5px; }
.st-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; max-height: 78%; overflow-y: auto; background: #fff; color: #222; border-radius: 22px 22px 0 0; padding: 22px 18px 24px; transform: translateY(102%); transition: transform .25s ease; }
.st-item.sheet-open .st-sheet { transform: none; }
.st-sheet h4 { margin: 0 34px 12px 0; font-size: 18px; color: #111; }
.st-sheet-close { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #F1F1F5; display: grid; place-items: center; cursor: pointer; color: #111; }
.st-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0 0 12px; }
.st-facts dt { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .08em; }
.st-facts dd { margin: 0; font-weight: 600; font-size: 14px; }
.st-flight { display: flex; gap: 8px; background: #F4F5F8; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; white-space: pre-line; margin-bottom: 10px; }
.st-sheet .desc { font-size: 14px; }

/* Обложка */
.st-cover-bg { position: absolute; inset: 0; background: linear-gradient(160deg, #FF8A5B 0%, color-mix(in srgb, var(--brand) 55%, #E8508F) 48%, color-mix(in srgb, var(--brand) 80%, #3A1F8A) 100%); }
.st-sun { position: absolute; right: -70px; top: 90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, #FFE29A 0%, #FFB86B 45%, transparent 70%); opacity: .9; }
.st-waves { position: absolute; left: -20px; right: -20px; bottom: 46%; height: 140px; background: repeating-radial-gradient(ellipse at 50% 120%, rgba(255, 255, 255, .18) 0 2px, transparent 2px 16px); }
.st-eyebrow { font-size: 12px; letter-spacing: .18em; font-weight: 700; opacity: .85; text-transform: uppercase; }
.st-cover h2 { font-size: 40px; line-height: 1.02; margin: 8px 0 4px; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.st-no { font-size: 11.5px; opacity: .65; letter-spacing: .1em; }
.st-hello { font-size: 14.5px; margin: 14px 0; opacity: .95; white-space: pre-line; }
.st-stat { display: flex; gap: 6px; margin-bottom: 16px; }
.st-stat div { flex: 1; background: rgba(255, 255, 255, .16); border-radius: 14px; padding: 9px 10px; backdrop-filter: blur(8px); min-width: 0; }
.st-stat b { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-stat span { font-size: 11.5px; opacity: .78; }
.st-mgr { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 14px; }
.st-mgr .ava { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--brand); font-weight: 800; display: grid; place-items: center; overflow: hidden; }
.st-mgr .ava img { width: 100%; height: 100%; object-fit: cover; }
.st-mgr b { display: block; }
.st-mgr span { opacity: .75; font-size: 12px; }
.st-start { width: 100%; height: 50px; border-radius: 16px; border: 0; background: #fff; color: #111; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* Финал */
.st-final { background: linear-gradient(170deg, #12364F 0%, #0B1F33 100%); }
.st-final .st-body { top: 70px; bottom: 0; max-height: none; display: flex; flex-direction: column; }
.st-final h2 { font-size: 27px; font-weight: 800; margin: 0 0 6px; line-height: 1.1; color: #fff; }
.st-final p { margin: 0 0 14px; font-size: 14px; opacity: .8; }
.st-mini { display: flex; flex-direction: column; gap: 6px; }
.st-mini button { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .08); border: 0; border-radius: 14px; padding: 8px; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.st-mini button:hover { background: rgba(255, 255, 255, .14); }
.st-mini .th { width: 44px; height: 44px; border-radius: 10px; background: rgba(255, 255, 255, .15) center/cover; flex: none; }
.st-mini .tx { min-width: 0; flex: 1; }
.st-mini b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-mini small { font-size: 12px; opacity: .7; }
.st-mini em { font-style: normal; font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.st-contact { margin-top: auto; padding-top: 14px; display: grid; gap: 6px; }
.st-contact a { height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 14.5px; background: rgba(255, 255, 255, .12); color: #fff; }
.st-contact a.main { background: #fff; color: #0B1F33; }
.st-agency { font-size: 11.5px; opacity: .55; text-align: center; margin-top: 10px; }
.st-hint { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 11px; opacity: .55; z-index: 4; pointer-events: none; }
.st-wrap:not(.first) .st-hint { display: none; }

.t-stories .staff-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; }
@media (max-width: 640px) {
  .st-wrap { gap: 0; }
  .st-arrow { display: none; }
  .st-frame { width: 100vw; height: 100dvh; border-radius: 0; }
}
