/* =========================================================
   ШРИФТЫ (локальные, папка ./fonts/)
   ========================================================= */
@font-face { font-family: 'TildaSans'; src: url('./fonts/TildaSans-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'TildaSans'; src: url('./fonts/TildaSans-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'TildaSans-Regular'; src: url('./fonts/TildaSans-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'TildaSans-Bold'; src: url('./fonts/TildaSans-Bold.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'KZ_RomulC'; src: url('./fonts/KZ_RomulC.otf') format('opentype'); font-display: swap; }
/* KZ_Romul: в оригинале шрифт не грузится (опечатка в пути) и всё рендерится Times New Roman — повторяем это поведение */
@font-face { font-family: 'Kz-LavanderiaC'; src: url('./fonts/Kz_LavanderiaC_kz.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Kz-Ametist'; src: url('./fonts/Kz_ametist_kz.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'KZOptima'; src: url('./fonts/KZOptima.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'KZ_Shelley'; src: url('./fonts/_AsylbekM02Shelley.kz_.ttf') format('truetype'); font-display: swap; }

/* =========================================================
   БАЗА (то, что в оригинале даёт tailwind preflight)
   ========================================================= */
*, ::before, ::after { box-sizing: border-box; border: 0 solid; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
audio, canvas, embed, iframe, img, object, svg, video { vertical-align: middle; display: block; }
img, video { max-width: 100%; height: auto; }
button, input, optgroup, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; opacity: 1; background-color: transparent; border-radius: 0; }
button, input:where([type="button"], [type="reset"], [type="submit"]) { appearance: button; }
textarea { resize: vertical; }
::placeholder { opacity: 1; color: currentcolor; }
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: auto; font-family: TildaSans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background-color: #141524; color: #000; }

/* =========================================================
   КАРКАС СТРАНИЦЫ (mobile-frame) — 1:1 из оригинала
   ========================================================= */
.page-container { min-height: 100vh; background: #1a1a1a; display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; }
.mobile-frame { width: 100%; max-width: 430px; height: auto; min-height: 500px; background: #fff; border-radius: 40px; overflow: hidden; box-shadow: rgba(0, 0, 0, 0.3) 0 20px 60px, #2a2a2a 0 0 0 12px, #1a1a1a 0 0 0 14px; position: relative; }
.mobile-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 150px; height: 30px; background: #1a1a1a; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; z-index: 1000; }
.page-content { width: 100%; height: auto; overflow: hidden auto; }

@media (max-width: 768px) {
  html, body { overflow: hidden auto !important; height: auto !important; min-height: 100vh !important; position: relative !important; }
  .page-container { background: #fff !important; padding: 0 !important; min-height: 100vh !important; display: block !important; height: auto !important; }
  .mobile-frame { max-width: 100% !important; height: auto !important; max-height: none !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; }
  .mobile-notch { display: none !important; }
  .page-content { height: auto !important; overflow: visible !important; }
}

.sh-page { width: 100%; min-height: 100vh; background: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; overflow: hidden auto; }
.sh-page--public { background: #fff; padding-top: 0; touch-action: pan-x pan-y pinch-zoom !important; overflow-y: auto !important; isolation: auto !important; transform: none !important; will-change: auto !important; -webkit-font-smoothing: antialiased; text-rendering: optimizelegibility; }
.sh-page__content { max-width: 100%; margin: 0 auto; background: transparent; box-shadow: none; position: relative; border-radius: 0; height: auto; overflow: visible; }
.sh-page--public .sh-page__content { touch-action: pan-x pan-y pinch-zoom !important; isolation: auto !important; transform: none !important; will-change: auto !important; overflow: visible !important; }
.sh-block { position: relative; width: 100%; border: 2px solid transparent; transition: none; cursor: default; box-sizing: border-box; border-radius: 0; overflow: visible; }
.sh-block--public { contain: layout style; touch-action: pan-x pan-y pinch-zoom !important; transform: none !important; isolation: auto !important; will-change: auto !important; cursor: default !important; border: none !important; }

/* компоненты */
.sh-component { box-sizing: border-box; border: 1px solid transparent; touch-action: auto; will-change: auto; position: relative; contain: none !important; overflow: visible !important; clip-path: none !important; }
.sh-component--public { touch-action: auto !important; pointer-events: none !important; cursor: default !important; will-change: auto !important; }
.sh-component__content { width: 100%; height: 100%; position: relative; pointer-events: none; touch-action: inherit; overflow: visible !important; }
.sh-component--locked .sh-component__content { pointer-events: auto !important; }
.sh-component--public .sh-component__content { touch-action: auto !important; }

.image-component { width: 100%; height: 100%; position: relative; user-select: none; }
.image-component img { pointer-events: none; user-select: none; -webkit-user-drag: none; }
.image-container { position: relative; width: 100%; height: 100%; }
.shape-component { width: 100%; height: 100%; position: relative; contain: none !important; overflow: visible !important; }
.text-content { display: flex; align-items: center; justify-content: center; height: 100%; box-sizing: border-box; cursor: default; }
.button-component { width: 100%; height: 100%; position: relative; }
.button-component a:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: rgba(249, 253, 237, 0.4) 0 16px 32px !important; }
.button-component a:active { transform: translateY(0); }

/* RSVP */
#rsvpForm label:hover { filter: brightness(0.98); }

/* =========================================================
   АНИМАЦИИ ПОЯВЛЕНИЯ (как в оригинале: animated-wrapper +
   animation-layer; включаются JS после открытия конверта)
   ========================================================= */
.animated-wrapper { width: 100%; height: 100%; position: relative; display: block; isolation: isolate; }
.animation-layer { width: 100%; height: 100%; display: block; position: relative; transform-origin: center center; backface-visibility: hidden; }
.animation-layer:not(.animation-active) { animation: none !important; }
.animation-layer.animation-float { animation: 1.8s ease-in-out 0s infinite normal none running anim-float; }
.animation-layer.animation-pulse { animation: 1.8s ease-in-out 0s infinite normal none running anim-pulse; }
.animation-layer.animation-heartbeat { animation: 1.8s ease-in-out 0s infinite normal none running anim-heartbeat; }
.animation-layer.animation-swayLR { animation: 1.8s ease-in-out 0s infinite normal none running anim-swayLR; transform-origin: center bottom; }
.animation-layer.animation-spin { animation: 1.8s linear 0s infinite normal none running anim-spin; }
@keyframes anim-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes anim-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes anim-heartbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.1); } 28% { transform: scale(1); } 42% { transform: scale(1.1); } 56% { transform: scale(1); } }
@keyframes anim-swayLR { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes anim-spin { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .animation-layer { animation: none !important; transform: none !important; }
}
/* пока конверт закрыт — страница «заморожена», как в оригинале */
body.envelope-closed .sh-page, body.envelope-closed .sh-page * { animation-play-state: paused !important; }

/* =========================================================
   КОНВЕРТ (ЗАСТАВКА) — 1:1 из оригинала
   ========================================================= */
.envelope-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10000000; overflow: hidden; }
body.envelope-open .envelope-overlay { pointer-events: none; }
body.envelope-done .envelope-overlay { display: none; }

.envelope-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #7d8c6e; z-index: 1; transition: opacity 4s ease-out; }
body.envelope-open .envelope-bg { opacity: 0; }
.envelope-bg-panels { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
body.envelope-open .envelope-bg-panels { opacity: 0; }
.bg-svg, .flap-svg { width: 100%; height: 100%; display: block; }

.envelope-flap-top { position: absolute; top: 0; left: 0; width: 100%; height: 50%; z-index: 10; transition: transform 5s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: transform; }
.envelope-flap-bottom { position: absolute; bottom: 0; left: 0; width: 100%; height: 50%; z-index: 10; transition: transform 5s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: transform; }
body.envelope-open .envelope-flap-top { transform: translateY(-100%); }
body.envelope-open .envelope-flap-bottom { transform: translateY(100%); }

.envelope-content { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 20; }
body.envelope-open .envelope-content { opacity: 0; pointer-events: none; }
.top-section { position: absolute; top: 8vh; left: 50%; transform: translateX(-50%); text-align: center; width: 90%; }
.bottom-section { position: absolute; bottom: 8vh; left: 50%; transform: translateX(-50%); text-align: center; width: 90%; }
.envelope-invitation { font-family: KZ_Shelley, cursive; font-size: 56px; font-style: italic; color: #f5f0e8; margin: 0 0 15px; font-weight: normal; white-space: nowrap; }
.envelope-title { font-family: KZ_Romul, "Times New Roman", serif; font-size: 22px; font-weight: normal; color: #f5f0e8; margin: 0; line-height: 1.3; text-transform: uppercase; letter-spacing: 3px; }
.envelope-bottom-text { font-family: KZ_Romul, serif; font-size: 20px; line-height: 1.4; color: #f5f0e8; margin: 0 auto; text-align: center; max-width: 300px; }

.envelope-button-wrap { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 25; cursor: pointer; transition: transform 5s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: transform; outline: none; -webkit-tap-highlight-color: transparent; }
body.envelope-open .envelope-button-wrap { transform: translate(-50%, calc(-50% - 52vh)); }
.envelope-button { width: 150px; height: 199px; position: relative; }
body:not(.envelope-open) .envelope-button-wrap:hover .envelope-button { transform: scale(1.06); transition: transform 0.3s; }
body:not(.envelope-open) .envelope-button-wrap:active .envelope-button { transform: scale(0.95); transition: transform 0.1s; }
.envelope-button img { width: 100%; height: 100%; display: block; object-fit: contain; position: relative; z-index: 1; }
/* тень печати: не filter: drop-shadow (на iOS Safari он рисуется квадратом),
   а мягкий круглый градиент под медальоном */
.envelope-button::before { content: ""; position: absolute; left: 4%; right: 4%; top: 12%; bottom: 14%; border-radius: 50%; transform: translateY(12px); background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.12) 60%, rgba(0, 0, 0, 0) 72%); z-index: 0; pointer-events: none; }
.seal-text { z-index: 2; }
/* картинка «на всю ширину» экрана с отступами по 34px по бокам */
.sh-component--fullwidth { width: calc(100% - 68px) !important; }
.seal-text { position: absolute; top: 48%; left: 0; width: 100%; text-align: center; transform: translateY(-50%); font-family: KZ_Romul, "Times New Roman", serif; font-size: 17px; font-weight: bold; letter-spacing: 2px; color: rgba(50, 25, 5, 0.9); text-transform: uppercase; pointer-events: none; white-space: nowrap; }

html[lang="ru"] .seal-text { font-size: 14px; letter-spacing: 1px; }

@media (max-width: 768px) {
  .top-section { top: 6vh; } .bottom-section { bottom: 6vh; }
  .envelope-invitation { font-size: 46px; } .envelope-title { font-size: 19px; }
  .envelope-button { width: 130px; height: 173px; }
  .seal-text { font-size: 15px; letter-spacing: 1.5px; padding-left: 10px; }
  .envelope-bottom-text { font-size: 17px; max-width: 270px; }
}
@media (max-width: 480px) {
  .top-section { top: 5vh; } .bottom-section { bottom: 5vh; }
  .envelope-invitation { font-size: 40px; } .envelope-title { font-size: 16px; }
  .envelope-button { width: 120px; height: 159px; }
  .seal-text { font-size: 13px; letter-spacing: 1px; padding-left: 7px; }
  .envelope-bottom-text { font-size: 16px; max-width: 250px; }
}

/* =========================================================
   ПЛАВАЮЩАЯ КНОПКА «МУЗЫКА» — 1:1 из оригинала
   ========================================================= */
.audio-player-button { padding: 8px 24px 8px 8px; border: none; border-radius: 50px; cursor: pointer; display: flex; align-items: center; gap: 16px; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); animation: 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0s 1 normal none running audio-slide-in; transform: translateZ(0); will-change: transform; position: fixed !important; bottom: 40px !important; left: 40px !important; z-index: 999997 !important; pointer-events: auto !important; }
@keyframes audio-slide-in { 0% { transform: translateX(-120%); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
.audio-player-button:hover { filter: brightness(1.05); transform: scale(1.05) !important; }
.audio-player-button:active { transform: scale(1) !important; }
.play-pause-circle { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.2s; position: relative; }
.inner-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: 2s ease-in-out 0s infinite normal none running audio-pulse; }
@keyframes audio-pulse { 0%, 100% { transform: scale(1); box-shadow: rgba(255, 255, 255, 0.7) 0 0 0 0; } 50% { transform: scale(1.05); box-shadow: rgba(255, 255, 255, 0) 0 0 0 4px; } }
.audio-player-button:hover .play-pause-circle { transform: scale(1.1); }
.audio-player-button:hover .inner-circle { animation-duration: 1s; }
.play-icon, .pause-icon { flex-shrink: 0; }
.audio-player-button .button-text { white-space: nowrap; letter-spacing: 0.3px; font-weight: 600; padding-right: 8px; }
.waveform { display: flex; align-items: center; gap: 3px; height: 32px; padding-right: 8px; }
.wave-bar { width: 3px; height: 4px; border-radius: 2px; animation: 1.2s ease-in-out 0s infinite normal none running audio-wave; }
@keyframes audio-wave { 0%, 100% { height: 4px; } 50% { height: 24px; } }
@media (max-width: 768px) {
  .audio-player-button { padding: 6px 20px 6px 6px; gap: 12px; bottom: 32px !important; left: 32px !important; }
  .play-pause-circle { width: 44px; height: 44px; } .play-icon, .pause-icon { width: 22px; height: 22px; }
  .waveform { gap: 2px; height: 28px; } .wave-bar { width: 2.5px; }
}
@media (max-width: 414px) {
  .audio-player-button { padding: 5px 16px 5px 5px; gap: 10px; bottom: 24px !important; left: 24px !important; }
  .play-pause-circle { width: 40px; height: 40px; } .play-icon, .pause-icon { width: 20px; height: 20px; }
  .waveform { gap: 2px; height: 24px; } .wave-bar { width: 2px; }
  .audio-player-button .button-text { font-size: 14px; }
}
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .audio-player-button { bottom: calc(40px + env(safe-area-inset-bottom)) !important; left: calc(40px + env(safe-area-inset-left)) !important; }
  @media (max-width: 768px) { .audio-player-button { bottom: calc(32px + env(safe-area-inset-bottom)) !important; left: calc(32px + env(safe-area-inset-left)) !important; } }
  @media (max-width: 414px) { .audio-player-button { bottom: calc(24px + env(safe-area-inset-bottom)) !important; left: calc(24px + env(safe-area-inset-left)) !important; } }
}

/* =========================================================
   ПЛАВАЮЩАЯ КНОПКА «КААЛОО» + МОДАЛКИ — 1:1 из оригинала
   ========================================================= */
.wishes-fixed-button { position: fixed; bottom: 40px; right: 40px; padding: 16px 26px; border: none; border-radius: 30px; font-weight: 600; cursor: pointer; z-index: 9999998; display: flex; align-items: center; gap: 10px; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); letter-spacing: 0.3px; animation: 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0s 1 normal none running wishes-slide-in; }
@keyframes wishes-slide-in { 0% { transform: translateX(120%); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
.wishes-fixed-button:hover { transform: translateY(-4px); filter: brightness(1.15); }
.wishes-fixed-button:active { transform: translateY(-2px); }
.wishes-icon { flex-shrink: 0; }
.wishes-fixed-button .button-text { white-space: nowrap; }
/* кнопки скрыты, пока конверт закрыт (как в оригинале) */
body.envelope-closed .audio-player-button, body.envelope-closed .wishes-fixed-button { display: none !important; }

.wishes-modal-overlay { inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: 0.2s ease-out 0s 1 normal none running modal-fade-in; position: fixed !important; z-index: 9999999 !important; }
@keyframes modal-fade-in { 0% { opacity: 0; } 100% { opacity: 1; } }
.wishes-modal { background: #fff; border-radius: 20px; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: rgba(0, 0, 0, 0.3) 0 20px 60px; animation: 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0s 1 normal none running modal-slide-up; }
@keyframes modal-slide-up { 0% { transform: translateY(100px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
.wishes-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 24px 16px; border-bottom: 1px solid #f0f0f0; }
.wishes-modal-title { margin: 0; font-size: 24px; font-weight: 700; color: #1a1a1a; letter-spacing: -0.3px; }
.wishes-close-btn { width: 40px; height: 40px; border: none; background: #f5f5f5; border-radius: 50%; color: #666; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; flex-shrink: 0; }
.wishes-close-btn:hover { background: #e8e8e8; color: #333; }
.wishes-close-btn:active { transform: scale(0.95); }
.wishes-form { padding: 24px; }
.wishes-form-group { margin-bottom: 20px; }
.wishes-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: #333; }
.wishes-input, .wishes-textarea { width: 100%; padding: 14px 16px; border: 2px solid #e5e5e5; border-radius: 12px; font-size: 16px; color: #1a1a1a; transition: 0.2s; background: #fff; box-sizing: border-box; }
.wishes-input:focus, .wishes-textarea:focus { outline: none; border-color: #3b82f6; box-shadow: rgba(59, 130, 246, 0.1) 0 0 0 3px; }
.wishes-textarea { resize: vertical; min-height: 120px; }
.wishes-hint { margin-top: 6px; font-size: 12px; color: #888; }
.wishes-error { padding: 12px 16px; background: #ffeeee; color: #cc0000; border-radius: 12px; font-size: 14px; margin-bottom: 16px; font-weight: 500; }
.wishes-spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: 0.8s linear infinite anim-spin; }
.wishes-submit-btn { width: 100%; padding: 16px 24px; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; color: #fff; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.wishes-submit-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.1); }
.wishes-submit-btn:active:not(:disabled) { transform: translateY(0); }
.wishes-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.wishes-success { padding: 60px 24px; text-align: center; }
.wishes-success-icon { margin-bottom: 24px; animation: 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0s 1 normal none running modal-scale-in; display: flex; justify-content: center; }
@keyframes modal-scale-in { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.wishes-success-text { font-size: 20px; font-weight: 600; color: #10b981; margin: 0; }
@media (max-width: 768px) {
  .wishes-fixed-button { padding: 14px 20px; gap: 7px; bottom: 32px !important; right: 32px !important; }
  .wishes-fixed-button .wishes-icon { width: 20px; height: 20px; }
  .wishes-modal { border-radius: 16px; } .wishes-modal-header { padding: 20px 20px 14px; } .wishes-modal-title { font-size: 20px; } .wishes-form { padding: 20px; }
}
@media (max-width: 414px) {
  .wishes-fixed-button { padding: 12px 18px; border-radius: 26px; bottom: 24px !important; right: 24px !important; }
  .wishes-fixed-button .wishes-icon { width: 18px; height: 18px; }
  .wishes-modal-title { font-size: 18px; }
}
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .wishes-fixed-button { bottom: calc(40px + env(safe-area-inset-bottom)) !important; }
  @media (max-width: 768px) { .wishes-fixed-button { bottom: calc(32px + env(safe-area-inset-bottom)) !important; } }
  @media (max-width: 414px) { .wishes-fixed-button { bottom: calc(24px + env(safe-area-inset-bottom)) !important; } }
}

/* =========================================================
   СЛАЙДЕР ПОЖЕЛАНИЙ — 1:1 из оригинала
   ========================================================= */
.wl-root { padding: 48px 0 56px; background: transparent; overflow: visible; }
.wl-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 24px; text-align: center; }
.wl-state-text { font-size: 15px; color: #999; margin: 0; letter-spacing: 0.01em; }
.wl-empty-icon { font-size: 36px; margin-bottom: 14px; opacity: 0.25; line-height: 1; }
.wl-slider { display: flex; gap: 20px; padding: 8px 24px; overflow: auto hidden; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.wl-slider::-webkit-scrollbar { display: none; }
.wl-single { display: flex; justify-content: center; padding: 8px 24px; }
.wl-card { flex-shrink: 0; width: 300px; padding: 28px 24px 20px; border-radius: 20px; border: 1.5px solid; scroll-snap-align: center; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s, border-color 0.3s; box-shadow: rgba(0, 0, 0, 0.04) 0 2px 16px; }
.wl-card--active { transform: scale(1.02); box-shadow: rgba(0, 0, 0, 0.08) 0 8px 32px; }
.wl-card--single { width: 100%; max-width: 360px; transform: none; box-shadow: rgba(0, 0, 0, 0.06) 0 4px 24px; }
.wl-quote-mark { position: absolute; top: -4px; left: 16px; font-size: 80px; font-family: Georgia, "Times New Roman", serif; font-weight: 700; line-height: 1; pointer-events: none; user-select: none; }
.wl-card-body { flex: 1 1 0%; position: relative; z-index: 1; min-height: 72px; display: flex; align-items: flex-start; }
.wl-card-text { font-size: 15px; line-height: 1.65; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; letter-spacing: 0.01em; }
.wl-card-text--single { font-size: 16px; line-height: 1.7; -webkit-line-clamp: 8; }
.wl-card-footer { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(0, 0, 0, 0.05); position: relative; z-index: 1; }
.wl-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; letter-spacing: 0.5px; }
.wl-meta { flex: 1 1 0%; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wl-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.01em; }
.wl-date { font-size: 11px; color: #aaa; letter-spacing: 0.03em; }
.wl-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.wl-dot { width: 6px; height: 6px; border-radius: 50%; border: none; cursor: pointer; padding: 0; transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.wl-dot:hover { transform: scale(1.4); }
.wl-dot--active { width: 24px; border-radius: 3px; }
.wl-cta-wrap { display: flex; justify-content: center; margin-top: 36px; padding: 0 24px; }
.wl-cta { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border: 1.5px solid; border-radius: 50px; background: transparent; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); position: relative; z-index: 10; -webkit-tap-highlight-color: transparent; pointer-events: auto !important; }
.wl-cta svg { transition: transform 0.3s; }
.wl-cta:hover { transform: translateY(-2px); box-shadow: rgba(0, 0, 0, 0.08) 0 8px 24px; }
.wl-cta:hover svg { transform: translateX(3px); }
.wl-cta:active { transform: translateY(0) scale(0.98); }
@media (max-width: 768px) {
  .wl-root { padding: 36px 0 44px; } .wl-slider { padding: 8px 20px; gap: 16px; } .wl-single { padding: 8px 20px; }
  .wl-card { width: 280px; padding: 24px 20px 18px; } .wl-card--single { max-width: 340px; } .wl-quote-mark { font-size: 64px; }
  .wl-cta-wrap { margin-top: 32px; } .wl-cta { padding: 12px 28px; font-size: 11px; letter-spacing: 1.2px; }
}
@media (max-width: 414px) {
  .wl-root { padding: 28px 0 36px; } .wl-slider { padding: 8px 16px; gap: 14px; } .wl-single { padding: 8px 16px; }
  .wl-card { width: calc(100vw - 56px); padding: 22px 18px 16px; } .wl-card--single { max-width: 100%; }
  .wl-quote-mark { font-size: 56px; top: -2px; left: 12px; }
  .wl-card-text { font-size: 14px; -webkit-line-clamp: 3; } .wl-card-text--single { font-size: 15px; -webkit-line-clamp: 6; }
  .wl-avatar { width: 32px; height: 32px; font-size: 11px; } .wl-name { font-size: 13px; }
  .wl-card-footer { margin-top: 16px; padding-top: 14px; } .wl-dots { margin-top: 20px; }
  .wl-cta-wrap { margin-top: 28px; padding: 0 16px; } .wl-cta { padding: 12px 24px; font-size: 11px; letter-spacing: 1px; width: 100%; justify-content: center; }
}

/* =========================================================
   СТРАНИЦА «ВСЕ ПОЖЕЛАНИЯ» — 1:1 из оригинала (/wishes)
   ========================================================= */
.wishes-full-page { position: fixed; inset: 0; z-index: 2147483645; overflow-y: auto; min-height: 100vh; background: linear-gradient(#fef5f5, #fff); font-family: KZOptima, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; padding-bottom: 72px; animation: 0.25s ease-out 0s 1 normal none running modal-fade-in; }
.wishes-header { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 16px; padding: 20px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0, 0, 0, 0.08); box-shadow: rgba(0, 0, 0, 0.05) 0 2px 12px; }
.back-btn { width: 44px; height: 44px; border-radius: 12px; background: #f5f5f5; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; color: #333; }
.back-btn:hover { background: #e5e5e5; transform: scale(1.05); }
.wishes-header h1 { flex: 1 1 0%; margin: 0; font-size: 22px; font-weight: 700; color: #1a1a1a; }
.wishes-count { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #8d8558, #6e6845); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; box-shadow: rgba(141, 133, 88, 0.3) 0 4px 12px; }
.wishes-list { padding: 20px; display: flex; flex-direction: column; gap: 20px; max-width: 800px; margin: 0 auto; }
.wish-card { position: relative; padding: 28px; background: #fff; border-radius: 20px; box-shadow: rgba(0, 0, 0, 0.08) 0 4px 20px; transition: 0.3s; border: 1px solid rgba(0, 0, 0, 0.06); }
.wish-card:hover { box-shadow: rgba(0, 0, 0, 0.12) 0 8px 32px; transform: translateY(-2px); }
.wish-header-card { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.wish-avatar { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #8d8558, #6e6845); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; flex-shrink: 0; box-shadow: rgba(141, 133, 88, 0.3) 0 6px 20px; }
.wish-info { flex: 1 1 0%; min-width: 0; }
.wish-name { font-size: 19px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; letter-spacing: -0.3px; }
.wish-time { font-size: 13px; color: #999; font-weight: 500; }
.wish-comment { font-size: 16px; line-height: 1.7; color: #333; overflow-wrap: break-word; letter-spacing: 0.2px; }
.wishes-empty { padding: 60px 20px; text-align: center; color: #999; font-size: 15px; }
@media (max-width: 414px) {
  .wishes-header { padding: 16px; } .wishes-header h1 { font-size: 18px; }
  .wishes-list { padding: 12px; gap: 16px; } .wish-card { padding: 20px; }
  .wish-avatar { width: 48px; height: 48px; font-size: 20px; } .wish-name { font-size: 17px; } .wish-comment { font-size: 15px; }
}

/* =========================================================
   НАПОМИНАНИЕ ОБ ОТВЕТЕ — 1:1 из оригинала
   ========================================================= */
.pb-form-reminder { position: fixed; top: 0; left: 0; right: 0; z-index: 2147483640; padding: 12px; pointer-events: none; animation: 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0s 1 normal none running pbReminderSlide; }
@keyframes pbReminderSlide { 0% { transform: translateY(-120%); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
.pb-form-reminder__inner { pointer-events: auto; max-width: 560px; margin: 0 auto; background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%); border: 1.5px solid #f4d9a8; border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: rgba(212, 165, 116, 0.25) 0 12px 40px, rgba(0, 0, 0, 0.08) 0 4px 12px; backdrop-filter: blur(12px); }
.pb-form-reminder__icon { font-size: 32px; line-height: 1; flex-shrink: 0; animation: 2s ease-in-out 0s infinite normal none running pbReminderBounce; }
@keyframes pbReminderBounce { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-4px) rotate(5deg); } }
.pb-form-reminder__text { flex: 1 1 0%; min-width: 0; }
.pb-form-reminder__title { font-size: 14px; font-weight: 700; color: #1a1a1a; line-height: 1.3; margin-bottom: 2px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.pb-form-reminder__desc { font-size: 12px; color: #6b5d4a; line-height: 1.4; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.pb-form-reminder__btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; background: linear-gradient(135deg, #d4a574 0%, #b8874f 100%); color: #fff; border: none; border-radius: 12px; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: rgba(184, 135, 79, 0.4) 0 4px 14px; transition: 0.2s; white-space: nowrap; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.pb-form-reminder__btn:hover { transform: translateY(-1px); box-shadow: rgba(184, 135, 79, 0.5) 0 6px 18px; }
.pb-form-reminder__btn:active { transform: translateY(0); }
.pb-form-reminder__close { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(0, 0, 0, 0.05); color: #6b5d4a; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.pb-form-reminder__close:hover { background: rgba(0, 0, 0, 0.1); color: #1a1a1a; }
@media (max-width: 480px) {
  .pb-form-reminder { padding: 8px; } .pb-form-reminder__inner { padding: 12px; gap: 8px; border-radius: 14px; }
  .pb-form-reminder__icon { font-size: 26px; } .pb-form-reminder__title { font-size: 13px; } .pb-form-reminder__desc { font-size: 11px; }
  .pb-form-reminder__btn { padding: 9px 12px; font-size: 12px; } .pb-form-reminder__btn svg { display: none; } .pb-form-reminder__close { width: 28px; height: 28px; }
}
@media (max-width: 360px) { .pb-form-reminder__desc { display: none; } }

/* =========================================================
   ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА — 1:1 из оригинала
   ========================================================= */
.lang-switch { position: fixed; right: 0; top: 50%; transform: translateY(-50%) translateX(0%); z-index: 2147483640; display: flex; flex-direction: column; pointer-events: auto; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
/* при скролле уезжает вправо, через 600 мс после остановки возвращается (как в оригинале) */
.lang-switch--hidden { transform: translateY(-50%) translateX(110%); }
.lang-btn { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; width: 56px; height: 52px; border: none; outline: none; cursor: pointer; font-family: TildaSans, -apple-system, sans-serif; transition: 0.2s; background: rgba(255, 255, 255, 0.95); color: #555; box-shadow: rgba(0, 0, 0, 0.1) -2px 0 10px; }
.lang-btn:first-child { border-radius: 12px 0 0 0; }
.lang-btn:last-child { border-radius: 0 0 0 12px; border-top: 1px solid rgba(0, 0, 0, 0.07); }
.lang-btn--active { background: #c4a97d; color: #fff; cursor: default; box-shadow: rgba(0, 0, 0, 0.2) -4px 0 20px; }
.lang-flag { font-size: 18px; line-height: 1; }
.lang-label { font-size: 10px; font-weight: 700; letter-spacing: 0.03em; }
