:root {
  --phong-chu: 'Be Vietnam Pro', system-ui, sans-serif; --viet-tay: 'Playfair Display', Georgia, serif;
  --muc: #3a2a3f; --nhan: #a92f4c; --vang: #f6d78f; --vien: #e2bd78; --giay: #fff8ec;
  --nut: linear-gradient(180deg, #f9e0a0, #dba94f); --chu-nut: #43203a;
  --dem-xuan: linear-gradient(#1d2350, #43296a 62%, #8c456f);
  --o-dem: rgb(255 238 200 / .14); --chu-dem: #f9dfa1; --canh: linear-gradient(140deg, #ffe3ea, #f2809f);
  --nen-ngoai: #1d2350;
}
h1, h2, .ten, .ten-bia, .ten-khach { font-family: var(--viet-tay); font-weight: 600; }
h2 { margin-bottom: 18px; color: var(--nhan); font-size: 1.875rem; line-height: 1.35; }
h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.4; }
.logo { width: auto; max-width: 170px; height: 64px; margin: 0 auto 12px; padding: 6px 10px; border-radius: 14px; background: #fff; object-fit: contain; }

.co-js .bia { background: linear-gradient(rgb(22 24 66 / .35), rgb(22 24 66 / .82) 45%), url(anh/cuoi-nam-phao-hoa.jpg) center / cover, #1d2350; color: #fff3d9; }
.bia .canh-dao { position: absolute; top: 0; left: 0; width: min(46vw, 230px, 30svh); transform-origin: 0 0; animation: du 5s ease-in-out infinite alternate; }
@keyframes du { from { rotate: -3deg; } to { rotate: 3deg; } }
.khung-bia { z-index: 1; width: 100%; margin-top: 12svh; }
.chu-bia { font-size: 1.125rem; font-weight: 500; }
.ten-bia { margin: 6px 0; color: var(--vang); font-size: min(11.5vw, 3.25rem, 150vw / var(--n), 720px / var(--n)); line-height: 1.3; white-space: nowrap; }
.ly { width: auto; height: min(26svh, 220px); margin: 8px 0; }
.kinh-moi { margin-bottom: 14px; font-size: 1.125rem; }
.kinh-moi b { color: var(--vang); font-weight: 600; }
.dang-mo .ly { animation: cham-ly 1.5s ease-out forwards; }
.dang-mo .khung-bia > :not(.ly) { opacity: 0; transition: opacity .5s; }
.dang-mo .canh-dao { opacity: 0; transform: translateY(-40%); transition: transform 1.5s, opacity 1.5s; }
.bia.dang-mo { animation: mo-dan .8s .9s forwards; }
@keyframes cham-ly { 25% { transform: rotate(-5deg) scale(1.08); } 45% { transform: rotate(4deg) scale(1.12); } to { opacity: 0; transform: scale(1.5); } }
@keyframes mo-dan { to { opacity: 0; } }

.thiep { background: url(hinh/giay.svg), var(--giay); }
.anh-dau { width: 100%; }
.ten-dau { position: relative; margin-top: -44px; padding: 34px 20px 8px; border-radius: 44px 44px 0 0; background: url(hinh/giay.svg), var(--giay); }
h1 { margin: 4px 0; color: var(--nhan); font-size: min(12vw, 3.25rem, 155vw / var(--n), 740px / var(--n)); line-height: 1.3; white-space: nowrap; }
[data-dai].ten-bia, h1[data-dai] { font-size: min(8.6vw, 2.25rem); white-space: normal; text-wrap: balance; }
.thiep .moi { padding-top: 36px; }
.ten-khach { margin-bottom: 10px; color: var(--nhan); font-size: min(2.125rem, 140vw / var(--n)); line-height: 1.4; }
.tri-an { margin-top: 14px; font-weight: 600; }
.loi-nhan { margin-top: 18px; padding: 18px 20px; border-radius: 20px; background: #fff; }

.noi-tiec, footer { background: var(--dem-xuan); color: #fff3d9; }
.noi-tiec h2, .noi-tiec .so-ngay, footer .ten { color: var(--vang); }
.noi-tiec::before { content: ''; position: absolute; top: -8px; right: 0; width: 170px; aspect-ratio: 665 / 820; background: url(bo/ve-canh-dao.webp) center / contain no-repeat; transform: scaleX(-1); }
.thiep .noi-tiec { padding-top: 118px; }
.so-ngay { font-weight: 600; }
.noi-tiec h3 { margin-top: 12px; }
.noi-tiec .nut { margin-top: 20px; }

.lich ol { display: grid; gap: 4px; max-width: 360px; margin: 0 auto; text-align: left; }
.lich li { display: grid; grid-template-columns: 78px 1fr; align-items: baseline; padding: 10px 0; }
.lich time { color: var(--nhan); font-size: 1.1875rem; font-weight: 600; }
.lich h3 { font-size: 1.0625rem; font-weight: 500; }
.mac { background: #fbe6da; }
.tra-loi { background: #fbe6da; }
footer { padding: 48px 24px 0; }
footer .ten { font-size: 1.875rem; line-height: 1.4; }
footer img { width: 190px; margin: 24px auto 0; }
