/* Заставка: раз в день. Грузится в <head>, чтобы закрыть экран до первой отрисовки.
   Ход: логотип поднимается из-под маски → линия заполняется → приветствие по времени суток
   («Доброе утро») и строка «Рады видеть вас…» → шторка цвета шампань поднимается снизу →
   всё уезжает вверх и открывает сайт. Около четырёх секунд. Тексты — src/splash-texts.ts. */
#pf-splash { display: none; }
html.pf-splash-on { overflow: hidden; }
html.pf-splash-on #pf-splash { display: grid; place-items: center; position: fixed; inset: 0; z-index: 2147483600; background: #151416; animation: pf-sp-out .85s cubic-bezier(.76, 0, .24, 1) 3.15s both; }
#pf-splash::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 50%, rgba(174, 160, 137, .18), transparent 70%); animation: pf-sp-glow 2.2s ease-out both; }
#pf-splash::after { content: ""; position: absolute; inset: 0; background: #aea089; transform: translateY(101%); animation: pf-sp-wipe .7s cubic-bezier(.76, 0, .24, 1) 2.75s both; }
.pf-sp-in { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 24px; text-align: center; animation: pf-sp-lift .6s cubic-bezier(.6, 0, .4, 1) 2.55s both; }
.pf-sp-logo { overflow: hidden; padding: 6px 0; }
.pf-sp-logo img { display: block; height: clamp(34px, 7vw, 68px); width: auto; animation: pf-sp-rise 1s cubic-bezier(.16, .84, .24, 1) .2s both; }
.pf-sp-line { display: block; width: min(56vw, 380px); height: 1px; margin-top: 28px; background: rgba(255, 255, 255, .16); position: relative; overflow: hidden; }
.pf-sp-line::after { content: ""; position: absolute; inset: 0; background: #aea089; transform-origin: 0 50%; animation: pf-sp-fill 1.25s cubic-bezier(.5, 0, .2, 1) .45s both; }
.pf-sp-hi { margin-top: 26px; font: 400 clamp(30px, 8.6vw, 46px)/1.15 var(--bh-font-display, "Playfair Display", Georgia, serif); color: #f3dfa4; animation: pf-sp-up .9s cubic-bezier(.2, .7, .2, 1) .85s both; }
.pf-sp-sub { margin-top: 12px; font: 300 clamp(13px, 3.6vw, 15px)/1.5 Geist, sans-serif; color: #cfc4b0; letter-spacing: .04em; animation: pf-sp-up .9s cubic-bezier(.2, .7, .2, 1) 1.2s both; }
.pf-sp-hi:empty, .pf-sp-sub:empty { display: none; }
@keyframes pf-sp-rise { from { transform: translateY(115%); } to { transform: none; } }
@keyframes pf-sp-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pf-sp-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pf-sp-glow { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes pf-sp-lift { to { opacity: 0; transform: translateY(-36px); } }
@keyframes pf-sp-wipe { to { transform: none; } }
@keyframes pf-sp-out { to { transform: translateY(-100%); visibility: hidden; } }
