/* ==========================================================================
   Patris Carpet Wash — public site
   Glassmorphism · RTL · responsive · reduced-motion aware
   ========================================================================== */

@font-face {
    font-family: "IRYekan";
    src: url("../fonts/IRANYekan-Medium.woff2") format("woff2"), url("../fonts/IRANYekan-Medium.ttf") format("truetype");
    font-weight: 400 800;
    font-display: swap;
}

:root {
    --gold: #c9a257;
    --gold-2: #e2c791;
    --gold-3: #f4ead3;
    --amber: #a97a2c;
    --aqua: #46858c;
    --aqua-2: #a9cfd3;
    --ink: #11141d;
    --ink-2: #444b5e;
    --muted: #7b8397;
    --bg: #fcf9f2;
    --bg-2: #f4ead3;
    --glass: rgba(255, 255, 255, .58);
    --glass-strong: rgba(255, 255, 255, .78);
    --stroke: rgba(255, 255, 255, .85);
    --line: rgba(17, 20, 29, .08);
    --shadow-sm: 0 4px 16px rgba(30, 34, 50, .06);
    --shadow: 0 18px 50px -12px rgba(60, 50, 10, .22);
    --shadow-lg: 0 40px 90px -20px rgba(60, 50, 10, .35);
    --r: 22px;
    --r-sm: 14px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --container: 1180px;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "IRYekan", Tahoma, system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.85;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 8px; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; overflow-x: clip; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───── aurora background ───── */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.aurora i {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
    will-change: transform; animation: float 22s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { width: 46vw; height: 46vw; background: var(--gold-2); inset-block-start: -14vw; inset-inline-end: -10vw; }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; background: var(--aqua-2); inset-block-start: 38vh; inset-inline-start: -14vw; animation-duration: 28s; opacity: .4; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; background: #e8d9bd; inset-block-end: -12vw; inset-inline-end: 12vw; animation-duration: 32s; opacity: .45; }
@keyframes float { to { transform: translate3d(5vw, 6vh, 0) scale(1.15); } }

/* ───── glass primitives ───── */
.glass {
    background: var(--glass);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    backdrop-filter: blur(18px) saturate(1.5);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .9);
    border-radius: var(--r);
}
.spot { position: relative; overflow: hidden; isolation: isolate; }
.spot::after {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 162, 87, .22), transparent 60%);
}
.spot:hover::after { opacity: 1; }

/* ───── buttons ───── */
.btn {
    --h: 52px;
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    height: var(--h); padding-inline: 1.7rem; border-radius: 999px; border: 0;
    font-weight: 800; font-size: 1rem; position: relative; overflow: hidden; isolation: isolate;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--amber)); color: #1a1305; box-shadow: 0 10px 28px -8px rgba(169, 122, 44, .65), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-gold::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .65) 50%, transparent 70%); transform: translateX(120%); transition: transform .7s var(--ease); }
.btn-gold:hover::before { transform: translateX(-120%); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -8px rgba(169, 122, 44, .75); }
.btn-ghost { background: var(--glass-strong); border: 1px solid var(--stroke); color: var(--ink); box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-ghost:hover { transform: translateY(-3px); background: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); }
.btn-sm { --h: 42px; padding-inline: 1.2rem; font-size: .95rem; }
.btn .fa-solid, .btn .fa-brands { font-size: .95em; }

/* ───── nav ───── */
.notice { background: linear-gradient(90deg, var(--ink), #22283a); color: var(--gold-2); text-align: center; padding: .5rem 1rem; font-size: .9rem; }
.nav-wrap { position: sticky; top: 0; z-index: 90; padding-top: .8rem; transition: padding .3s; }
.nav {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .55rem .8rem .55rem 1rem; border-radius: 999px;
    background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid var(--stroke); box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
    transition: box-shadow .35s, background .35s;
}
.nav-wrap.scrolled .nav { background: var(--glass-strong); box-shadow: var(--shadow); }
.brand img { height: 56px; width: 132px; object-fit: cover; object-position: 50% 30%; }
.nav-links { display: flex; align-items: center; gap: .2rem; }
.nav-links a { padding: .5rem 1rem; border-radius: 999px; font-weight: 700; font-size: .96rem; color: var(--ink-2); position: relative; transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--ink); background: rgba(201, 162, 87, .22); }
.nav-links a.active { color: #1a1305; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--stroke); background: var(--glass-strong); place-items: center; position: relative; }
.burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; position: absolute; }
.burger span::before { transform: translateY(-6px); }
.burger span::after { transform: translateY(6px); }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: rotate(45deg); }
.menu-open .burger span::after { transform: rotate(-45deg); }

/* ───── hero ───── */
.hero { padding-top: clamp(2rem, 5vw, 4rem); position: relative; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.badge {
    display: inline-flex; align-items: center; gap: .55rem; padding: .4rem 1rem .4rem 1.1rem; border-radius: 999px;
    background: var(--glass-strong); border: 1px solid var(--stroke); font-size: .88rem; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.badge b { width: 9px; height: 9px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 0 rgba(70, 133, 140, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(70, 133, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(70, 133, 140, 0); } }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); margin-block: 1.1rem .9rem; letter-spacing: -.5px; }
.grad { background: linear-gradient(100deg, #8f6420, #c9a257 55%, #e2c791); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes shine { to { background-position: -200% center; } }
.clamp { color: var(--ink-2); font-size: 1.07rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; transition: all .4s; }
.clamp.open { -webkit-line-clamp: unset; display: block; }
.more-btn { background: none; border: 0; color: #8f6420; font-weight: 800; padding: .4rem 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-top: 2.2rem; }
.stat { padding: .9rem .6rem; text-align: center; }
.stat strong { display: block; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; line-height: 1.2; background: linear-gradient(135deg, #a97a2c, #8f6420); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .82rem; color: var(--muted); }

.hero-visual { position: relative; aspect-ratio: 4/5; max-height: 600px; }
.hero-visual .frame { position: absolute; inset: 6% 8%; border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid rgba(255, 255, 255, .85); animation: morph 14s ease-in-out infinite; background: #222; }
.hero-visual video, .hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
@keyframes morph { 50% { border-radius: 58% 42% 40% 60% / 55% 58% 42% 45%; } }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(201, 162, 87, .65); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip { position: absolute; display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; font-weight: 800; font-size: .88rem; animation: bob 5s ease-in-out infinite; z-index: 2; }
.chip i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--amber)); color: #2a1e08; }
.chip.c1 { inset-block-start: 8%; inset-inline-start: -4%; }
.chip.c2 { inset-block-end: 12%; inset-inline-end: -4%; animation-delay: -2.5s; }
.chip.c2 i { background: linear-gradient(135deg, var(--aqua-2), var(--aqua)); color: #0e2a2e; }
@keyframes bob { 50% { transform: translateY(-14px); } }
#bubbles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero > .container { position: relative; z-index: 1; }

/* ───── section heading ───── */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3.5rem); }
.eyebrow { display: inline-block; padding: .25rem 1rem; border-radius: 999px; font-size: .82rem; font-weight: 800; letter-spacing: .5px; color: #8a621f; background: rgba(201, 162, 87, .22); margin-bottom: .8rem; }
.sec-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.sec-head p { color: var(--muted); margin-top: .6rem; }
.sec-head::after { content: ""; display: block; width: 70px; height: 5px; border-radius: 5px; margin: 1.1rem auto 0; background: linear-gradient(90deg, var(--gold), var(--aqua)); }

/* ───── services ───── */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.2rem; }
.svc { padding: 1rem 1rem 1.4rem; text-align: center; transition: transform .5s var(--ease), box-shadow .5s; transform-style: preserve-3d; }
.svc:hover { box-shadow: var(--shadow); }
.svc .pic { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #fff; margin-bottom: 1rem; position: relative; }
.svc .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc:hover .pic img { transform: scale(1.12) rotate(1.5deg); }
.svc .num { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: var(--gold); color: #1a1305; box-shadow: 0 6px 14px -4px rgba(169, 122, 44, .7); }
.svc h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.svc p { color: var(--muted); font-size: .92rem; line-height: 1.7; }

/* ───── machine split ───── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { position: relative; }
.split-media > img, .split-media > video { width: 100%; border-radius: 28px; box-shadow: var(--shadow-lg); border: 6px solid rgba(255, 255, 255, .85); }
.split-media::before { content: ""; position: absolute; inset: 8% -5% -6% 8%; border-radius: 30px; background: linear-gradient(135deg, var(--gold), var(--aqua)); opacity: .35; z-index: -1; filter: blur(2px); transform: rotate(-3deg); }
.split h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.split .body { color: var(--ink-2); }
.split .body.clamp { -webkit-line-clamp: 7; }
.split h3 { font-size: 1.6rem; margin-bottom: .8rem; }

/* ───── plans ───── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.plan { padding: 2rem 1.6rem; text-align: center; display: flex; flex-direction: column; gap: 1.1rem; position: relative; transition: transform .5s var(--ease), box-shadow .5s; }
.plan:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.7rem; padding: .7rem; border-radius: 16px; background: linear-gradient(135deg, var(--gold-3), var(--gold-2)); color: #2a1e08; }
.plan .fast { display: flex; align-items: center; justify-content: center; gap: .5rem; color: var(--ink-2); font-weight: 700; }
.plan .fast i { color: var(--aqua); }
.plan ul { display: grid; gap: .7rem; text-align: start; }
.plan li { display: flex; align-items: center; gap: .7rem; padding: .6rem .9rem; border-radius: 14px; background: rgba(255, 255, 255, .6); border: 1px solid var(--line); font-size: .95rem; }
.plan li i { color: #a97a2c; width: 1.2em; text-align: center; }
.plan li b { margin-inline-start: auto; font-weight: 800; white-space: nowrap; }
.plan.feat { background: linear-gradient(160deg, rgba(226, 199, 145, .95), rgba(201, 162, 87, .9)); transform: scale(1.04); border-color: #fff; box-shadow: var(--shadow-lg); }
.plan.feat:hover { transform: scale(1.04) translateY(-8px); }
.plan.feat h3 { background: #fff; }
.plan.feat li { background: rgba(255, 255, 255, .55); }
.ribbon { position: absolute; inset-block-start: -14px; inset-inline-start: 50%; transform: translateX(50%); padding: .3rem 1.1rem; border-radius: 999px; background: var(--ink); color: var(--gold-2); font-size: .8rem; font-weight: 800; white-space: nowrap; box-shadow: var(--shadow); }

/* ───── app ───── */
.app { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 3.5rem); overflow: hidden; background: linear-gradient(135deg, rgba(255, 255, 255, .7), rgba(255, 243, 184, .65)); }
.app h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.app p { color: var(--ink-2); margin-bottom: .6rem; }
.app img { max-height: 420px; margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .2)); animation: bob 6s ease-in-out infinite; }

/* ───── blog cards ───── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.4rem; }
.post { overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s; }
.post:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.post .thumb { aspect-ratio: 16/10; overflow: hidden; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post:hover .thumb img { transform: scale(1.1); }
.post .info { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post time { font-size: .8rem; color: var(--muted); }
.post h3 { font-size: 1.15rem; }
.post p { color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post .more { margin-top: auto; font-weight: 800; color: #8f6420; display: inline-flex; align-items: center; gap: .4rem; }
.post .more i { transition: transform .3s; }
.post:hover .more i { transform: translateX(-6px); }

/* ───── cta band ───── */
.cta { text-align: center; padding: clamp(2rem, 5vw, 4rem) 1.5rem; background: linear-gradient(135deg, #14171f, #262c3d); color: #fff; border-radius: 34px; position: relative; overflow: hidden; }
.cta::before, .cta::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(70px); opacity: .5; }
.cta::before { background: var(--gold); inset-block-start: -180px; inset-inline-start: -100px; }
.cta::after { background: var(--aqua); inset-block-end: -200px; inset-inline-end: -100px; opacity: .4; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(1.5rem, 3.2vw, 2.4rem); margin-bottom: .6rem; }
.cta p { color: #c9cedc; margin-bottom: 1.4rem; }
.cta .phones { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ───── footer ───── */
.footer { margin-top: clamp(3rem, 7vw, 6rem); background: linear-gradient(180deg, #151822, #0d0f16); color: #cfd3df; border-radius: 36px 36px 0 0; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset-inline-end: -120px; inset-block-start: -120px; width: 360px; height: 360px; background: var(--gold); filter: blur(120px); opacity: .18; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; position: relative; }
.footer img.flogo { height: 84px; width: 190px; object-fit: cover; margin-bottom: 1rem; filter: brightness(1.15); }
.footer h4 { color: #fff; font-size: 1.15rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.footer h4 i { color: var(--gold); }
.footer p { font-size: .95rem; line-height: 2; }
.footer ul { display: grid; gap: .55rem; }
.footer li a { display: flex; align-items: center; gap: .7rem; transition: color .25s, transform .25s; }
.footer li a:hover { color: var(--gold-2); transform: translateX(-4px); }
.footer li i { width: 1.4em; text-align: center; color: var(--gold); }
.copyright { border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.2rem 0; text-align: center; font-size: .9rem; color: #8d93a6; position: relative; }
.copyright a { color: var(--aqua-2); font-weight: 800; }

/* ───── floating call (mobile) ───── */
.fab { position: fixed; inset-inline-start: 1rem; inset-block-end: 1rem; z-index: 80; width: 58px; height: 58px; border-radius: 50%; display: none; place-items: center; font-size: 1.3rem; color: #1a1305; background: linear-gradient(135deg, var(--gold-2), var(--amber)); box-shadow: 0 12px 30px -6px rgba(169, 122, 44, .8); animation: ring 2.4s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(201, 162, 87, .6), 0 12px 30px -6px rgba(169, 122, 44, .8); } 70%, 100% { box-shadow: 0 0 0 18px rgba(201, 162, 87, 0), 0 12px 30px -6px rgba(169, 122, 44, .8); } }
.to-top { position: fixed; inset-inline-end: 1rem; inset-block-end: 1rem; z-index: 80; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--stroke); background: var(--glass-strong); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .4s var(--ease); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.progress { position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px; z-index: 120; transform-origin: right; transform: scaleX(0); background: linear-gradient(90deg, var(--gold), var(--aqua)); }

/* ───── page header ───── */
.page-head { padding-block: clamp(2.5rem, 6vw, 5rem) 1rem; text-align: center; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.page-head p { color: var(--muted); margin-top: .6rem; }

/* ───── prices page ───── */
.toolbar { display: flex; justify-content: center; margin-bottom: 2rem; }
.search { position: relative; width: min(460px, 100%); }
.search input { width: 100%; height: 54px; padding-inline: 3.2rem 1.2rem; border-radius: 999px; border: 1px solid var(--stroke); background: var(--glass-strong); font: inherit; box-shadow: var(--shadow-sm); transition: box-shadow .3s, border-color .3s; }
.search input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 87, .25); }
.search i { position: absolute; inset-inline-start: 1.2rem; inset-block-start: 50%; transform: translateY(-50%); color: var(--muted); }
.alert-bar { display: flex; align-items: center; gap: .8rem; justify-content: center; margin: 0 auto 2rem; padding: .9rem 1.4rem; max-width: 640px; background: rgba(201, 162, 87, .2); border: 1px solid rgba(201, 162, 87, .5); border-radius: 18px; font-weight: 700; }
.alert-bar i { color: #8f6420; }
.prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.3rem; }
.pcard { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; transition: transform .5s var(--ease), box-shadow .5s; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pcard h3 { font-size: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.pcard h3 .tag { font-size: .72rem; padding: .15rem .7rem; border-radius: 999px; background: #ffe4e0; color: #c0392b; font-weight: 800; white-space: nowrap; }
.pcard .fast { color: var(--muted); font-size: .9rem; display: flex; gap: .5rem; align-items: center; }
.pcard .fast i { color: var(--aqua); }
.rows { display: grid; gap: .55rem; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem .9rem; border-radius: 12px; background: rgba(255, 255, 255, .65); border: 1px solid var(--line); font-size: .94rem; }
.rows li b { font-weight: 800; white-space: nowrap; }
.rows li.hl { background: linear-gradient(135deg, var(--gold-3), var(--gold-2)); border-color: transparent; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; display: none; }

/* ───── about ───── */
.vid-hero { border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid rgba(255, 255, 255, .85); max-width: 980px; margin-inline: auto; background: #111; }
.vid-hero video { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.about-block { margin-top: clamp(3rem, 7vw, 6rem); }
.carousel { position: relative; }
.track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 26px; }
.track::-webkit-scrollbar { display: none; }
.track > * { flex: 0 0 100%; scroll-snap-align: center; border-radius: 26px; overflow: hidden; }
.track img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: inherit; }
.car-btn { position: absolute; inset-block-start: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--stroke); background: var(--glass-strong); box-shadow: var(--shadow); z-index: 2; display: grid; place-items: center; transition: transform .3s, background .3s; }
.car-btn:hover { background: var(--gold); transform: translateY(-50%) scale(1.1); }
.car-btn.prev { right: .8rem; } .car-btn.next { left: .8rem; }
.dots { display: flex; gap: .4rem; justify-content: center; margin-top: .9rem; }
.dots b { width: 9px; height: 9px; border-radius: 9px; background: rgba(0, 0, 0, .18); transition: all .3s; }
.dots b.on { width: 28px; background: var(--gold); }
.addr { padding: 1.5rem; }
.addr .map { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); width: 100%; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(15, 17, 25, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
dialog.lightbox img { border-radius: 22px; width: 100%; box-shadow: var(--shadow-lg); animation: pop .5s var(--ease); }
dialog.lightbox .x { position: absolute; inset-block-start: -18px; inset-inline-end: -10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 1.2rem; box-shadow: var(--shadow); }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(30px); } }

/* ───── faq ───── */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 1rem; }
.faq-item { overflow: hidden; }
.faq-q { width: 100%; background: none; border: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.5rem; font-weight: 800; font-size: 1.08rem; text-align: start; color: inherit; }
.faq-q .ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-3); transition: transform .4s var(--ease), background .3s; }
.faq-item.open .ic { transform: rotate(45deg); background: var(--gold); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 1.5rem 1.4rem; color: var(--ink-2); }
.faq-hero { width: 150px; margin: 0 auto 1rem; animation: bob 5s ease-in-out infinite; }

/* ───── article ───── */
.cover { position: relative; height: clamp(240px, 38vw, 420px); overflow: hidden; border-radius: 0 0 40px 40px; }
.cover img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(1.3); transform: scale(1.05); }
.cover .t { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff; padding: 1rem; gap: .5rem; }
.cover h1 { font-size: clamp(2rem, 6vw, 4rem); text-shadow: 0 6px 30px rgba(0, 0, 0, .4); }
.cover p { color: #e7e9f1; }
.article { width: min(820px, 100% - 2.5rem); margin: -4rem auto 0; position: relative; padding: clamp(1.4rem, 4vw, 3rem); }
.article h1 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); margin-bottom: .8rem; }
.meta { display: flex; gap: 1.2rem; color: var(--muted); font-size: .88rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.article .hero-img { border-radius: 22px; width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 1.8rem; box-shadow: var(--shadow); }
.prose { font-size: 1.08rem; line-height: 2.2; color: #2b3040; overflow-wrap: anywhere; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 1.8rem 0 .8rem; }
.prose p { margin-bottom: 1.1rem; }
.prose img { border-radius: 16px; margin-block: 1.2rem; }
.prose a { color: #8f6420; text-decoration: underline; text-underline-offset: 4px; }
.prose ul, .prose ol { padding-inline-start: 1.6rem; margin-bottom: 1.1rem; list-style: revert; }
.prose blockquote { margin: 1.4rem 0; padding: 1rem 1.4rem; border-inline-start: 5px solid var(--gold); background: rgba(201, 162, 87, .12); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; margin-block: 1rem; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: .6rem .9rem; }

/* ───── pagination ───── */
.pager { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; padding-inline: .9rem; display: grid; place-items: center; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--stroke); font-weight: 800; }
.pager a:hover { background: var(--gold-2); }
.pager .cur { background: var(--gold); color: #1a1305; }
.pager .dis { opacity: .4; }

/* ───── video page ───── */
.video-box { max-width: 820px; margin: 2rem auto; padding: 1rem; }
.video-box video { width: 100%; border-radius: 18px; background: #000; }

/* ───── auth ───── */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { position: relative; overflow: hidden; background: #111; }
.auth-art img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(201, 162, 87, .35), rgba(17, 20, 29, .75)); }
.auth-art .cap { position: absolute; inset-inline: 2rem; inset-block-end: 2.5rem; z-index: 2; color: #fff; }
.auth-art .cap h2 { font-size: 2rem; margin-bottom: .5rem; }
.auth-form { display: grid; place-items: center; padding: 2rem 1.25rem; position: relative; }
.auth-card { width: min(440px, 100%); padding: 2.2rem 2rem; }
.auth-card .brand { display: block; margin: 0 auto 1.2rem; }
.auth-card .brand img { height: 72px; width: 170px; object-fit: cover; margin-inline: auto; }
.auth-card h1 { font-size: 1.6rem; text-align: center; margin-bottom: .3rem; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 1.5rem; font-size: .95rem; }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-weight: 800; font-size: .9rem; }
.field input, .field textarea, .field select { width: 100%; height: 50px; padding: 0 1rem; border-radius: 14px; border: 1px solid rgba(17, 20, 29, .12); background: rgba(255, 255, 255, .85); font: inherit; transition: border-color .25s, box-shadow .25s; }
.field textarea { height: auto; padding: .8rem 1rem; min-height: 90px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 87, .25); }
.err { color: #c0392b; font-size: .85rem; font-weight: 700; }
.check { display: flex; align-items: center; gap: .6rem; font-size: .92rem; margin-bottom: 1rem; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.auth-card .btn { width: 100%; }
.auth-card .alt { text-align: center; margin-top: 1.2rem; font-size: .92rem; color: var(--muted); }
.auth-card .alt a { color: #8f6420; font-weight: 800; }
.hp { position: absolute; inset-inline-start: -9999px; }
.ok-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.ok-card { max-width: 480px; padding: 3rem 2rem; text-align: center; }
.ok-card .tick { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 1.4rem; display: grid; place-items: center; font-size: 2.4rem; background: linear-gradient(135deg, #5bb894, #10b981); color: #fff; animation: pop .7s var(--ease); box-shadow: 0 20px 40px -10px rgba(16, 185, 129, .6); }

/* ───── errors ───── */
.err-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.err-page .code { font-size: clamp(6rem, 22vw, 12rem); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--gold), var(--amber) 50%, var(--aqua)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; background-size: 200% auto; }

/* ───── reveal ───── */
.js [data-reveal] { opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal="left"] { transform: translateX(-50px); }
.js [data-reveal="right"] { transform: translateX(50px); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ───── responsive ───── */
@media (max-width: 1000px) {
    .hero-grid, .split, .app { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
    .split.rev .split-media { order: 0; }
    .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
    .plan.feat { transform: none; order: -1; }
    .plan.feat:hover { transform: translateY(-8px); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
    .auth { grid-template-columns: 1fr; }
    .auth-art { display: none; }
}
@media (max-width: 860px) {
    .burger { display: grid; }
    .nav-cta .btn { display: none; }
    .nav-links {
        position: fixed; inset: 0; z-index: 95; flex-direction: column; justify-content: center; gap: .6rem;
        background: rgba(252, 249, 242, .9); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px);
        opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
    }
    .nav-links a { font-size: 1.4rem; padding: .7rem 2rem; opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease), background .25s; }
    .menu-open .nav-links { opacity: 1; visibility: visible; }
    .menu-open .nav-links a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 60ms + 100ms); }
    .menu-open .burger { z-index: 100; position: relative; }
    .menu-open { overflow: hidden; }
    /* backdrop-filter روی والد باعث می‌شود position:fixed فرزند نسبت به nav حساب شود */
    .menu-open .nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; border-color: transparent; box-shadow: none; }
    .menu-open .brand { position: relative; z-index: 100; }
    .fab { display: grid; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .to-top { inset-block-end: 5rem; }
}
@media (max-width: 560px) {
    body { font-size: 15px; }
    .container { width: calc(100% - 2rem); }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { flex: 1; }
    .chip { font-size: .75rem; padding: .4rem .7rem; }
    .chip i { width: 26px; height: 26px; }
    .brand img { height: 48px; width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}
@media print { .nav-wrap, .fab, .to-top, .aurora, .footer { display: none; } }


/* ==========================================================================
   Refined palette (champagne gold · ink · slate) + dark theme
   ========================================================================== */
:root {
    --bg: #f7f5f0;
    --surface: rgba(255, 255, 255, .62);
    --surface-solid: #fff;
    --field: rgba(255, 255, 255, .9);
    --field-line: rgba(20, 23, 31, .12);
    --prose: #2b3040;
    --frame: rgba(255, 255, 255, .9);
    --nav-sheet: rgba(247, 245, 240, .95);
    --logo-filter: none;
}
[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b0e14;
    --ink: #eceef4;
    --ink-2: #b2b8c8;
    --muted: #8890a4;
    --gold-3: rgba(201, 162, 87, .2);
    --glass: rgba(255, 255, 255, .055);
    --glass-strong: rgba(255, 255, 255, .09);
    --stroke: rgba(255, 255, 255, .11);
    --line: rgba(255, 255, 255, .09);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, .3);
    --shadow: 0 18px 50px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 40px 90px -20px rgba(0, 0, 0, .7);
    --surface: rgba(255, 255, 255, .06);
    --surface-solid: #171b26;
    --field: rgba(255, 255, 255, .06);
    --field-line: rgba(255, 255, 255, .15);
    --prose: #cfd4e0;
    --frame: rgba(255, 255, 255, .14);
    --nav-sheet: rgba(11, 14, 20, .95);
    --logo-filter: brightness(0) invert(1);
}
.aurora i { opacity: .32; }
[data-theme="dark"] .aurora i { opacity: .16; }
.brand img, .auth-card .brand img { filter: var(--logo-filter); object-fit: contain; object-position: center; }
.brand img { width: 128px; height: 46px; }
.footer img.flogo { filter: brightness(0) invert(1); width: 170px; height: 62px; object-fit: contain; object-position: right center; }
.btn-ghost:hover { background: var(--glass-strong); border-color: var(--gold); }
[data-theme="dark"] .btn-dark { background: var(--gold); color: #1a1305; }
.svc .pic { background: var(--surface-solid); }
.plan li, .rows li { background: var(--surface); }
.plan.feat { color: #1a1305; border-color: rgba(255, 255, 255, .6); }
.plan.feat h3 { background: #fff; color: #1a1305; }
.plan.feat li { background: rgba(255, 255, 255, .5); color: #1a1305; }
.plan.feat .fast { color: #3b2f14; }
.app { background: linear-gradient(135deg, var(--glass-strong), rgba(201, 162, 87, .12)); }
.hero-visual .frame { border-color: var(--frame); }
.split-media > img, .split-media > video, .vid-hero { border-color: var(--frame); }
.field input, .field textarea, .field select { background: var(--field); border-color: var(--field-line); color: var(--ink); }
.prose { color: var(--prose); }
.nav-links { }
@media (max-width: 860px) { .nav-links { background: var(--nav-sheet); } }
.pcard h3 .tag { background: rgba(192, 57, 43, .14); }
dialog.lightbox .x { background: var(--surface-solid); color: var(--ink); }
.search input { color: var(--ink); }
.theme-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--stroke); background: var(--glass-strong); color: var(--ink); display: grid; place-items: center; transition: transform .35s var(--ease), background .25s; }
.theme-btn:hover { transform: rotate(18deg) scale(1.08); background: var(--gold-3); }
.theme-btn .sun { display: none; } [data-theme="dark"] .theme-btn .sun { display: block; } [data-theme="dark"] .theme-btn .moon { display: none; }

/* hero: clean rounded frame (no distorting blob) */
.hero-visual { aspect-ratio: 5/6; max-height: 560px; }
.hero-visual .frame { inset: 5% 7%; border-radius: 30px; animation: none; border-width: 5px; }
.ring { inset: 1% 3%; border-radius: 36px; border: 1px solid var(--gold); animation: none; transform: rotate(3deg); opacity: .55; }
.chip i { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1305; }
.chip.c2 i { background: linear-gradient(135deg, var(--aqua-2), var(--aqua)); color: #0e2a2e; }
.badge b { background: var(--gold); box-shadow: 0 0 0 0 rgba(201, 162, 87, .6); animation-name: pulse-g; }
@keyframes pulse-g { 70% { box-shadow: 0 0 0 10px rgba(201, 162, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 162, 87, 0); } }
#bubbles { display: none; }

/* never let text/media escape the viewport */
h1, h2, h3, p, li, .body, .prose, .faq-q span { overflow-wrap: anywhere; }
.plan li, .rows li { flex-wrap: wrap; }
.container, .split > *, .hero-grid > *, .plans > *, .cards > *, .prices > *, .services > * { min-width: 0; }

/* banners */
.banners { display: grid; gap: 1rem; }
.banner { display: block; border-radius: 22px; overflow: hidden; border: 1px solid var(--stroke); box-shadow: var(--shadow-sm); position: relative; background: var(--surface-solid); transition: transform .5s var(--ease), box-shadow .5s; }
.banner:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.banner img { width: 100%; height: auto; display: block; }
.banner .ad { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; font-size: .68rem; padding: .05rem .6rem; border-radius: 99px; background: rgba(0, 0, 0, .45); color: #fff; backdrop-filter: blur(6px); }
.banner-slot { padding-block: 1.2rem; }
@media (max-width: 560px) { .brand img { width: 104px; height: 40px; } }

main { overflow-x: clip; }
[data-theme="dark"] .nav-wrap.scrolled .nav, [data-theme="dark"] .nav { background: rgba(18, 22, 32, .78); }
[data-theme="dark"] .theme-btn { color: var(--gold-2); }
.split-media::before { opacity: .2; }
[data-theme="dark"] .split-media::before { opacity: .12; }

/* ribbon: داخل کارت می‌ماند (کارت overflow:hidden دارد) */
.ribbon { inset-block-start: 0; border-radius: 0 0 14px 14px; padding: .35rem 1.2rem .4rem; }
.plan.feat { padding-top: 2.8rem; }

/* ───── Chat widget ───── */
.chat-fab { position: fixed; inset-inline-start: 1.1rem; inset-block-end: 1.1rem; z-index: 85; height: 56px; padding-inline: 1.1rem 1.3rem; border-radius: 999px; border: 0; display: flex; align-items: center; gap: .6rem; font-weight: 800; color: #1a1305; background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--amber)); box-shadow: 0 14px 34px -10px rgba(169, 122, 44, .8); transition: transform .35s var(--ease); }
.chat-fab:hover { transform: translateY(-3px); }
.chat-fab i { font-size: 1.2rem; }
#chat.open .chat-fab { transform: scale(0); pointer-events: none; }
.chat-panel { position: fixed; inset-inline-start: 1.1rem; inset-block-end: 1.1rem; z-index: 95; width: min(390px, calc(100vw - 2rem)); height: min(580px, calc(100dvh - 2rem)); display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--surface-solid); border: 1px solid var(--stroke); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(24px) scale(.96); transform-origin: bottom right; visibility: hidden; transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .35s; }
#chat.open .chat-panel { opacity: 1; transform: none; visibility: visible; }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; color: #fff; background: linear-gradient(135deg, #1b2030, #2a3046); border-bottom: 2px solid var(--gold); }
.chat-head .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-2), var(--amber)); color: #1a1305; flex: none; }
.chat-head b { display: block; font-size: .98rem; line-height: 1.3; }
.chat-head small { color: #aab1c5; font-size: .76rem; }
.chat-head small::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5bb894; margin-inline-end: .4rem; }
.chat-close { margin-inline-start: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; }
.chat-close:hover { background: rgba(255, 255, 255, .22); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; scroll-behavior: smooth; overscroll-behavior: contain; }
.chat-msgs .m { max-width: 86%; padding: .6rem .9rem; border-radius: 18px; font-size: .93rem; line-height: 1.85; overflow-wrap: anywhere; animation: pop-in .35s var(--ease) both; }
.chat-msgs .a { align-self: flex-start; background: var(--glass-strong); border: 1px solid var(--line); border-start-start-radius: 6px; color: var(--ink); }
.chat-msgs .u { align-self: flex-end; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1305; border-start-end-radius: 6px; }
.chat-msgs .typing { opacity: .6; animation: blink 1s infinite; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes blink { 50% { opacity: .25; } }
.chat-quick { display: flex; gap: .4rem; padding: 0 1rem .6rem; overflow-x: auto; scrollbar-width: none; }
.chat-quick button { flex: none; padding: .3rem .85rem; border-radius: 99px; border: 1px solid var(--stroke); background: var(--glass); color: var(--ink-2); font-size: .8rem; transition: background .2s, border-color .2s; }
.chat-quick button:hover { border-color: var(--gold); background: var(--gold-3); }
.chat-form { display: flex; align-items: flex-end; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; max-height: 110px; min-height: 44px; padding: .65rem .9rem; border-radius: 16px; border: 1px solid var(--field-line); background: var(--field); color: var(--ink); font: inherit; font-size: .93rem; line-height: 1.6; }
.chat-form textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 87, .22); }
.chat-form button { width: 44px; height: 44px; border-radius: 50%; border: 0; flex: none; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1305; }
#chat.busy .chat-form button { opacity: .5; pointer-events: none; }
.chat-note { text-align: center; font-size: .7rem; color: var(--muted); padding: 0 1rem .6rem; }
@media (max-width: 860px) {
    .fab { inset-block-end: 5.2rem; }
    .chat-fab { height: 52px; }
    .chat-panel { inset-inline: .6rem; inset-block-end: .6rem; width: auto; height: min(78dvh, 620px); }
}
