/* ==========================================================================
   وب‌دیتا ۲۴ — تم تیره پریمیوم (زغالی گرم + اکسنت طلایی)
   ========================================================================== */

:root {
    /* رنگ */
    --paper: #0f1116;
    --paper-2: #14161d;
    --paper-3: #1b1e27;
    --surface: #181b23;
    --surface-2: #1e222c;
    --ink: #f4f2ec;
    --ink-2: #ffffff;
    --text: #b6b3ac;
    --muted: #8a8781;
    --line: rgba(255, 255, 255, .085);
    --line-2: rgba(255, 255, 255, .17);
    --brass: #d8a445;
    --brass-deep: #efc77d;
    --brass-bright: #e9b95c;
    --brass-soft: rgba(216, 164, 69, .13);
    --brass-tint: rgba(216, 164, 69, .07);
    --wa: #1aa457;
    --wa-dark: #128c4a;

    /* هندسه */
    --radius: 16px;
    --radius-sm: 11px;
    --radius-lg: 22px;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, .25), 0 8px 22px rgba(0, 0, 0, .28);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, .28), 0 18px 40px rgba(0, 0, 0, .4);
    --shadow-lg: 0 28px 64px rgba(0, 0, 0, .55);
    --shadow-brass: 0 10px 28px rgba(216, 164, 69, .22);
    --grad-brass: linear-gradient(135deg, #edc070 0%, #d8a445 55%, #b8862c 100%);
    --grad-paper: linear-gradient(180deg, #0f1116 0%, #13151b 60%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 16.5px;
    line-height: 2;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-deep); text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3, h4 {
    color: var(--ink);
    line-height: 1.32; margin: 0 0 .5em;
    font-weight: 800; letter-spacing: -.022em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.14rem; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.4em; }
:focus-visible { outline: 3px solid #d8a445; outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(216, 164, 69, .3); color: #fff; }

.container { width: min(1140px, 100% - 2.6rem); margin-inline: auto; }
.narrow { width: min(780px, 100% - 2.6rem); }
.center { text-align: center; }
.muted { color: var(--muted); }
.accent { color: var(--brass-deep); }

/* ---------- دکمه‌ها ---------- */
.btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .74rem 1.55rem; border-radius: 12px;
    background: var(--grad-brass); color: #17130c;
    font: inherit; font-weight: 800; border: 1px solid transparent; cursor: pointer;
    line-height: 1.65; text-align: center;
    box-shadow: var(--shadow-brass);
    transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(216, 164, 69, .3); filter: brightness(1.05); }
.btn:active { transform: translateY(0) scale(.99); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn::after {
    content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: -55%;
    width: 40%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg);
    transition: transform .7s cubic-bezier(.4,0,.2,1);
}
.btn:hover::after { transform: skewX(-20deg) translateX(420%); }

.btn-sm { padding: .44rem 1.05rem; font-size: .9rem; border-radius: 10px; box-shadow: 0 4px 14px rgba(216, 164, 69, .18); }
.btn-lg { padding: .92rem 2rem; font-size: 1.02rem; border-radius: 14px; }
.btn-ghost {
    background: rgba(255, 255, 255, .045); color: var(--ink);
    border-color: var(--line-2); box-shadow: none;
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .3); color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.btn-wa { background: linear-gradient(135deg, #1eb45f, var(--wa-dark)); color: #fff; box-shadow: 0 8px 22px rgba(26, 164, 87, .3); }
.btn-wa:hover { background: linear-gradient(135deg, #22c26a, #0f7a40); box-shadow: 0 12px 28px rgba(26, 164, 87, .38); }
.btn-block { width: 100%; }

/* ---------- نوار پیشرفت ---------- */
.scroll-progress {
    position: fixed; top: 0; inset-inline-start: 0; z-index: 100;
    height: 2px; width: 0; background: var(--grad-brass);
    transition: width .1s linear; pointer-events: none;
}

/* ---------- هدر ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(15, 17, 22, .68);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
    background: rgba(15, 17, 22, .92);
    border-bottom-color: var(--line);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .45);
}
/* سربرگ سه‌ستونه: نشان در راست، منو دقیقاً در وسط، دکمه‌ها در چپ */
.header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    min-height: 76px;
}
.brand { justify-self: start; }
.nav { justify-self: center; }
.header-actions {
    justify-self: end;
    display: flex; align-items: center; gap: .55rem;
}
.label-short { display: none; }
.brand { display: inline-flex; align-items: center; gap: .62rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: #fff; }
.brand-mark {
    position: relative;
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
    background: var(--grad-brass); color: #17130c;
    font-family: system-ui, sans-serif; font-weight: 900; font-size: 1.02rem;
    box-shadow: 0 6px 16px rgba(216, 164, 69, .28);
    transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }

.nav { display: flex; align-items: center; gap: clamp(.95rem, 1.5vw, 1.55rem); }
.nav > a:not(.btn) {
    position: relative; color: #a9a69f; font-size: .94rem; font-weight: 600; padding: .35rem 0;
    transition: color .2s;
}
.nav > a:not(.btn)::after {
    content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px;
    background: var(--brass); transform: scaleX(0); transform-origin: right;
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.nav > a:not(.btn):hover { color: #fff; }
.nav > a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.header-actions .btn-cta {
    background: rgba(255, 255, 255, .08); color: #fff;
    border: 1px solid rgba(255, 255, 255, .16); box-shadow: none;
    white-space: nowrap;
}
.header-actions .btn-cta:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }

/* در عرض‌های میانی، دکمه‌ی واتساپ جایش را به منو می‌دهد (دکمه‌ی شناور واتساپ همیشه هست) */
@media (max-width: 1120px) {
    .header-wa { display: none; }
}

.nav-toggle {
    display: none; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2);
    border-radius: 11px; width: 44px; height: 44px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 21px; height: 21px; margin: auto; display: block; }

/* ---------- هیرو ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(46rem 26rem at 88% -12%, rgba(216, 164, 69, .16) 0%, transparent 62%),
        radial-gradient(34rem 24rem at -8% 8%, rgba(120, 130, 190, .1) 0%, transparent 60%),
        var(--paper);
    padding: clamp(2.5rem, 5.2vw, 4.3rem) 0 clamp(2.8rem, 5.6vw, 4.4rem);
    color: var(--text);
}
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(58rem 36rem at 62% 0%, #000 15%, transparent 72%);
    -webkit-mask-image: radial-gradient(58rem 36rem at 62% 0%, #000 15%, transparent 72%);
}
.hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.22fr .88fr;
    column-gap: 3.2rem; row-gap: 2rem; align-items: center;
}

/* آمارها کل عرض هیرو را می‌گیرند، نه فقط ستون متن */
.hero-stats { grid-column: 1 / -1; }
.hero h1 { color: #fff; margin-bottom: .85rem; }

/* بج با نقطه‌ی زنده */
.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .32rem .95rem; border-radius: 99px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(216, 164, 69, .28);
    font-size: .82rem; font-weight: 700; color: var(--brass-deep);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25); margin-bottom: 1.35rem;
}
.eyebrow::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--wa);
    box-shadow: 0 0 0 3px rgba(26, 164, 87, .18);
    animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero-text p { font-size: 1.1rem; max-width: 56ch; color: #a7a49d; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.7rem; }

/* واژه‌ی چرخان */
.rotator { display: inline-grid; overflow: hidden; vertical-align: bottom; color: var(--brass-bright); }
.rotator > span { grid-area: 1 / 1; opacity: 0; animation: rot 10.5s cubic-bezier(.3,.9,.3,1) infinite; }
.rotator > span:nth-child(2) { animation-delay: 3.5s; }
.rotator > span:nth-child(3) { animation-delay: 7s; }
@keyframes rot {
    0% { opacity: 0; transform: translateY(70%); }
    3% { opacity: 1; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(0); }
    33% { opacity: 0; transform: translateY(-70%); }
    100% { opacity: 0; transform: translateY(-70%); }
}

/* آمار هیرو */
.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    margin-top: .2rem; background: var(--line);
    border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden;
}
.hero-stats > div { background: rgba(255, 255, 255, .022); padding: 1.05rem 1.15rem; }
.hero-stats strong { display: block; color: #fff; font-size: 1.18rem; letter-spacing: -.02em; }
.hero-stats strong i { font-style: normal; color: var(--brass-bright); }
.hero-stats span { font-size: .81rem; color: var(--muted); }

/* کارت‌های کنار هیرو */
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; perspective: 900px; }
.hero-points li {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.05rem 1.2rem 1.05rem 1.3rem;
    backdrop-filter: blur(10px);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s, background .3s;
    will-change: transform;
}
.hero-points li::before {
    content: ''; position: absolute; inset-inline-start: 0; top: 14%; bottom: 14%; width: 3px;
    border-radius: 3px; background: var(--grad-brass); opacity: 0; transition: opacity .3s;
}
.hero-points li:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, .4); border-color: rgba(216, 164, 69, .3); background: rgba(255, 255, 255, .07); }
.hero-points li:hover::before { opacity: 1; }
.hero-points strong { display: block; color: #fff; font-size: .99rem; margin-bottom: .1rem; }
.hero-points span { font-size: .89rem; color: #9b988f; }

/* حباب‌های نرم */
.blob { position: absolute; border-radius: 50%; filter: blur(85px); pointer-events: none; z-index: 0; opacity: .55; }
.blob-1 { width: 380px; height: 380px; background: #8a5c14; top: -16%; right: -7%; animation: drift 16s ease-in-out infinite alternate; }
.blob-2 { width: 300px; height: 300px; background: #2b3358; bottom: -22%; left: -6%; animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-46px, 34px) scale(1.14); }
}

/* ورود پله‌ای هیرو */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-text .eyebrow, .hero-text h1, .hero-text p, .hero-actions,
.hero-stats, .hero-points li { animation: rise .8s cubic-bezier(.22,.9,.3,1) backwards; }
.hero-text .eyebrow { animation-delay: .04s; }
.hero-text h1 { animation-delay: .13s; }
.hero-text p { animation-delay: .25s; }
.hero-actions { animation-delay: .37s; }
.hero-stats { animation-delay: .5s; }
.hero-points li:nth-child(1) { animation-delay: .44s; }
.hero-points li:nth-child(2) { animation-delay: .56s; }
.hero-points li:nth-child(3) { animation-delay: .68s; }

/* ---------- نوار فناوری‌ها ---------- */
.tech-strip {
    background: var(--paper-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: .95rem 0; overflow: hidden;
}
.tech-track { display: flex; width: max-content; animation: marquee var(--marquee-dur, 34s) linear infinite; }
.tech-strip:hover .tech-track { animation-play-state: paused; }
.tech-track span {
    color: #7d7a72; font-weight: 700; font-size: .92rem; white-space: nowrap;
    padding-inline: 1.75rem; display: inline-flex; align-items: center; gap: .55rem;
}
.tech-track span::before { content: '✦'; color: var(--brass); font-size: .72rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- بخش‌ها ---------- */
.section { position: relative; padding: clamp(3rem, 6.5vw, 5.2rem) 0; }
.section-alt { background: var(--paper-2); }
.section-dark {
    background:
        radial-gradient(38rem 22rem at 90% -10%, rgba(216, 164, 69, .09) 0%, transparent 62%),
        var(--paper-2);
    color: var(--text);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.section-dark h2 { color: #fff; }
/* دکمه‌ها رنگ خودشان را دارند؛ این قاعده فقط لینک‌های متنی را می‌گیرد */
.section-dark a:not(.btn) { color: var(--brass-deep); }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 2.8rem; }
.kicker {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .27rem .85rem; border-radius: 99px;
    background: var(--brass-soft); color: var(--brass-deep);
    font-size: .78rem; font-weight: 800; letter-spacing: .02em; margin-bottom: .9rem;
    border: 1px solid rgba(216, 164, 69, .24);
}
.kicker::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brass-bright); }
.section-head h2 { margin-bottom: .55rem; }
.section-head p { color: var(--muted); font-size: 1.01rem; }

/* ---------- کارت‌ها ---------- */
.grid { display: grid; gap: 1.3rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s, background .3s;
}
.card:hover {
    transform: translateY(-5px);
    background: var(--surface-2);
    box-shadow: var(--shadow-md);
    border-color: rgba(216, 164, 69, .26);
}

.service { padding: 1.75rem 1.55rem; overflow: hidden; }
.service::before {
    content: ''; position: absolute; inset-inline: 0; top: 0; height: 2px;
    background: var(--grad-brass); transform: scaleX(0); transform-origin: right;
    transition: transform .38s cubic-bezier(.2,.8,.2,1);
}
.service:hover::before { transform: scaleX(1); transform-origin: left; }
.service .icon {
    width: 48px; height: 48px; display: grid; place-items: center;
    border-radius: 13px;
    background: var(--brass-soft); color: var(--brass-bright);
    border: 1px solid rgba(216, 164, 69, .24);
    margin-bottom: 1.05rem;
    transition: transform .4s cubic-bezier(.2,.8,.2,1), background .3s, color .3s;
}
.service .icon svg { width: 23px; height: 23px; }
.service:hover .icon { transform: rotate(-7deg) scale(1.08); background: var(--grad-brass); color: #17130c; border-color: transparent; }
.service h3 { margin-bottom: .45rem; }
.service p { font-size: .96rem; }

.ticks { list-style: none; padding: 0; margin: .85rem 0 0; display: grid; gap: .38rem; }
.ticks li { position: relative; padding-inline-start: 1.6rem; font-size: .91rem; }
.ticks li::before {
    content: ''; position: absolute; inset-inline-start: 0; top: .48em;
    width: 1.05em; height: 1.05em; border-radius: 50%;
    background: var(--brass-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9b95c' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/60% no-repeat;
    border: 1px solid rgba(216, 164, 69, .22);
}

/* مشکلات رایج */
.problem {
    padding: 1.25rem 1.3rem;
    background: rgba(255, 255, 255, .028);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s, background .3s;
}
.problem:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .05); box-shadow: var(--shadow-md); border-color: rgba(216, 164, 69, .24); }
.problem .p-emoji { font-size: 1.4rem; display: block; margin-bottom: .45rem; transition: transform .35s; }
.problem:hover .p-emoji { transform: scale(1.18) rotate(-6deg); }
.problem h3 { font-size: .99rem; margin-bottom: .18rem; color: #fff; }
.problem p { margin: 0; font-size: .89rem; color: var(--muted); }

/* ---------- پلن‌ها ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; align-items: stretch; }
.plan {
    padding: 1.85rem 1.6rem; display: flex; flex-direction: column;
    background: var(--surface);
}
.plan-featured {
    background: linear-gradient(180deg, rgba(216, 164, 69, .10) 0%, var(--surface) 52%);
    border-color: rgba(216, 164, 69, .34);
    box-shadow: var(--shadow-md);
}
.plan-featured:hover { transform: translateY(-7px); box-shadow: 0 30px 66px rgba(0, 0, 0, .55); }
.plan-badge {
    position: absolute; top: -13px; inset-inline: 0; margin-inline: auto; width: fit-content;
    padding: .24rem 1rem; border-radius: 99px;
    background: var(--grad-brass); color: #17130c;
    font-size: .75rem; font-weight: 800; white-space: nowrap;
    box-shadow: 0 6px 16px rgba(216, 164, 69, .3);
}
.plan h3 { font-size: 1.14rem; margin-bottom: .2rem; color: #fff; }
.plan-sites { color: var(--muted); font-size: .85rem; }
.plan .ticks { margin-top: 1.1rem; flex: 1; border-top: 1px solid var(--line); padding-top: 1.05rem; }
.plan-note { font-size: .8rem; color: var(--muted); text-align: center; margin: .9rem 0 1rem; }
.plans-foot { text-align: center; margin-top: 2.2rem; color: var(--muted); font-size: .93rem; }
.plans-foot a { font-weight: 700; color: var(--brass-deep); border-bottom: 1px solid rgba(216, 164, 69, .35); }

/* ---------- مراحل ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }
.steps li {
    padding: 1.5rem 1.3rem; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius);
    position: relative; overflow: hidden;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s, background .3s;
}
.steps li::after {
    content: attr(data-n); position: absolute; top: .35rem; inset-inline-end: .8rem;
    font-size: 2.6rem; font-weight: 900; color: rgba(255, 255, 255, .045); letter-spacing: -.05em;
    pointer-events: none; transition: color .3s;
}
.steps li:hover { transform: translateY(-4px); background: var(--surface-2); box-shadow: var(--shadow-md); border-color: rgba(216, 164, 69, .24); }
.steps li:hover::after { color: rgba(216, 164, 69, .16); }
.steps span {
    position: relative; z-index: 1;
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
    background: var(--brass-soft); color: var(--brass-bright);
    border: 1px solid rgba(216, 164, 69, .24);
    font-weight: 900; font-size: .98rem; margin-bottom: .8rem;
    transition: background .3s, color .3s, transform .3s;
}
.steps li:hover span { background: var(--grad-brass); color: #17130c; border-color: transparent; transform: scale(1.06); }
.steps h3 { position: relative; z-index: 1; font-size: 1.02rem; margin-bottom: .3rem; color: #fff; }
.steps p { position: relative; z-index: 1; font-size: .9rem; margin: 0; }

/* ---------- پرسش‌های متداول ---------- */
.article-faq { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.article-faq h2 { margin: 0 0 1.1rem; font-size: 1.35rem; }

.faq {
    border: 1px solid var(--line); border-radius: 14px; padding: .15rem 1.25rem;
    margin-bottom: .7rem; background: var(--surface);
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.faq:hover { border-color: var(--line-2); }
.faq[open] { border-color: rgba(216, 164, 69, .3); background: rgba(216, 164, 69, .05); }
.faq summary {
    cursor: pointer; font-weight: 700; color: #fff; padding: .75rem 0;
    list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; flex: none; width: 27px; height: 27px; border-radius: 8px;
    background: var(--brass-soft); color: var(--brass-bright); border: 1px solid rgba(216, 164, 69, .22);
    display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s, color .3s;
}
.faq[open] summary::after { content: '−'; transform: rotate(180deg); background: var(--grad-brass); color: #17130c; border-color: transparent; }
.faq p { margin: 0 0 .9rem; animation: faqIn .35s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- تماس ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.6rem; align-items: start; }
.contact-info { list-style: none; padding: 0; display: grid; gap: .7rem; margin-top: 1.4rem; }
.contact-info li a {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--ink); font-weight: 600; font-size: .96rem;
    transition: color .2s, transform .2s;
}
.contact-info li a:hover { color: var(--brass-deep); transform: translateX(-3px); }
.contact-info li a svg { flex: none; }

.form-card {
    padding: 1.85rem; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* کارت ورود به پنل پشتیبانی (جای فرم تیکت) */
.panel-card h3 { margin: 0 0 .55rem; font-size: 1.12rem; color: #fff; }
.panel-card > p { margin: 0 0 1.1rem; font-size: .92rem; line-height: 1.85; }
.panel-steps {
    list-style: none; margin: 0 0 1.35rem; padding: 0;
    display: grid; gap: .55rem;
}
.panel-steps li {
    display: flex; align-items: center; gap: .6rem;
    font-size: .89rem; color: var(--text);
}
.panel-steps span {
    flex: none; display: grid; place-items: center;
    width: 24px; height: 24px; border-radius: 8px;
    background: var(--brass-soft); color: var(--brass-bright);
    border: 1px solid rgba(216, 164, 69, .22);
    font-size: .78rem; font-weight: 800;
}
.panel-card .btn + .btn { margin-top: .55rem; }
.field { margin-bottom: 1rem; flex: 1; }
.field label { display: block; font-weight: 700; font-size: .9rem; color: #d9d6ce; margin-bottom: .3rem; }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; padding: .68rem .95rem;
    border: 1.5px solid rgba(255, 255, 255, .13); border-radius: 11px;
    background: rgba(255, 255, 255, .035); color: #f2f0ea;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #7b7871; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .22); }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--brass); background: rgba(255, 255, 255, .06);
    box-shadow: 0 0 0 4px rgba(216, 164, 69, .14); outline: none;
}
.field select option { background: #1b1e27; color: #f2f0ea; }
.ltr-input { text-align: left; }
.field-row { display: flex; gap: .9rem; }
.err { color: #f0796a; font-size: .84rem; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert-ok {
    padding: 1rem 1.2rem; border-radius: 13px;
    background: rgba(26, 164, 87, .12); color: #7ee2a8;
    border: 1px solid rgba(26, 164, 87, .34); font-weight: 600;
    animation: faqIn .4s ease;
}

/* ---------- وبلاگ ---------- */
.page-head {
    background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
    border-bottom: 1px solid var(--line);
    padding: 2.4rem 0 1.9rem;
}
.page-head h1 { margin-bottom: .35rem; }
.page-head p { color: var(--muted); max-width: 70ch; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: .65rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brass-deep); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.chip {
    display: inline-block; padding: .17rem .85rem; border-radius: 99px;
    background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: var(--text);
    font-size: .84rem; font-weight: 600; line-height: 2;
    transition: all .22s;
}
.chip:hover { border-color: rgba(216, 164, 69, .4); color: var(--brass-deep); background: rgba(216, 164, 69, .08); transform: translateY(-1px); }
.chip-active { background: var(--grad-brass); color: #17130c; border-color: transparent; }
.chip-active:hover { background: var(--grad-brass); color: #17130c; border-color: transparent; filter: brightness(1.06); }

/* جستجو و برچسب‌های وبلاگ */
.blog-search {
    display: flex; flex-wrap: wrap; gap: .55rem;
    margin-top: 1.2rem; max-width: 560px;
}
.page-head-center .blog-search { margin-inline: auto; justify-content: center; }
.blog-search input {
    flex: 1 1 220px; min-width: 0; font: inherit; padding: .62rem 1rem;
    border: 1.5px solid rgba(255, 255, 255, .13); border-radius: 11px;
    background: rgba(255, 255, 255, .035); color: #f2f0ea;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.blog-search input::placeholder { color: #7b7871; }
.blog-search input:hover { border-color: rgba(255, 255, 255, .22); }
.blog-search input:focus {
    border-color: var(--brass); background: rgba(255, 255, 255, .06);
    box-shadow: 0 0 0 4px rgba(216, 164, 69, .14); outline: none;
}
.blog-search .btn { flex: none; }
.tag-cloud {
    margin-top: 2.6rem; padding-top: 1.8rem;
    border-top: 1px solid var(--line); text-align: center;
}
.tag-cloud h2 { font-size: 1.1rem; margin-bottom: .35rem; }
.tag-cloud .chips { justify-content: center; margin-top: .9rem; }
.post-tags { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.post-tags strong { display: block; font-size: .92rem; color: #fff; }
.post-tags .chips { margin-top: .6rem; }

.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-cover {
    display: block; aspect-ratio: 16 / 10; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #232733, #1a1d26);
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.post-card:hover .post-cover img { transform: scale(1.055); }
.post-cover-fallback {
    display: grid; place-items: center; height: 100%;
    color: var(--brass-bright); font-weight: 800; font-size: 1.1rem;
}
.post-body { padding: 1.25rem 1.35rem 1.35rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.post-body h3 { font-size: 1.06rem; margin: .15rem 0 0; }
.post-body h3 a { color: #f2f0ea; transition: color .2s; }
.post-body h3 a:hover { color: var(--brass-deep); }
.post-body p { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.9; }
.meta {
    font-size: .83rem; color: var(--muted); margin-top: auto; padding-top: .65rem;
    display: flex; align-items: center; gap: .5rem;
}
.meta::before { content: ''; width: 16px; height: 2px; border-radius: 2px; background: var(--brass); }

.pager { margin-top: 2.3rem; text-align: center; }
.pager-list {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: .55rem; margin: 0; padding: 0; list-style: none;
}
.pager-item {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; padding: .42rem .85rem; border: 1px solid var(--line-2);
    border-radius: 10px; background: rgba(255, 255, 255, .04);
    font-size: .93rem; font-weight: 600; color: var(--text);
    transition: border-color .2s, background .2s, color .2s, transform .2s;
}
a.pager-item:hover {
    border-color: rgba(216, 164, 69, .45); color: var(--brass-deep);
    background: rgba(216, 164, 69, .09); transform: translateY(-1px);
}
.pager-current {
    border-color: transparent; background: var(--grad-brass);
    color: #17130c; box-shadow: 0 6px 16px rgba(216, 164, 69, .25);
}
.pager-disabled { opacity: .42; cursor: not-allowed; }
.pager-gap { background: transparent; border-color: transparent; color: var(--muted); }

/* مقاله */
.article-head h1 { margin-bottom: .35rem; }
.lead { font-size: 1.1rem; color: var(--muted); }
.cover {
    /* نسبت واقعی عکس از width/height خود تگ می‌آید تا چیدمان نپرد (CLS) */
    display: block; width: 100%; height: auto;
    border-radius: var(--radius); margin: 1.7rem 0; box-shadow: var(--shadow-md);
}
.toc {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; padding: 1rem 1.4rem; margin: 1.5rem 0; font-size: .94rem;
}
.toc strong { color: #fff; }
.toc ol { margin: .35rem 0 0; }
.toc li { line-height: 1.95; }
.prose { font-size: 1.04rem; padding-top: .4rem; }
.prose h2 { margin-top: 2em; padding-top: .45em; border-top: 1px solid var(--line); }
.prose h3 { margin-top: 1.6em; }
.prose img { border-radius: 13px; margin: 1.2em auto; }
.prose pre {
    direction: ltr; text-align: left; background: #0a0b0e; color: #e6e8ee;
    padding: 1.05rem 1.25rem; border-radius: 13px; overflow-x: auto;
    font-size: .87rem; line-height: 1.75; border: 1px solid rgba(255, 255, 255, .07);
}
.prose code {
    direction: ltr; unicode-bidi: embed; font-family: ui-monospace, Consolas, monospace;
    background: rgba(216, 164, 69, .12); color: var(--brass-deep);
    padding: .05em .42em; border-radius: 6px; font-size: .9em;
}
.prose pre code { background: none; color: inherit; padding: 0; }
.prose blockquote {
    margin: 1.2em 0; padding: .65em 1.2em; border-inline-start: 3px solid var(--brass);
    background: rgba(216, 164, 69, .07); border-radius: 10px; color: #ddd9d1;
}
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .8rem; }
.prose th { background: var(--paper-3); color: #fff; }

.cta {
    position: relative; overflow: hidden;
    margin: 2.8rem 0; padding: 2.1rem 1.9rem; border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(216, 164, 69, .1), rgba(216, 164, 69, .03));
    border: 1px solid rgba(216, 164, 69, .26);
    text-align: center;
}
.cta::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(24rem 14rem at 82% -30%, rgba(216, 164, 69, .16), transparent 62%);
}
.cta > * { position: relative; }
.cta h2 { font-size: 1.35rem; margin-bottom: .45rem; color: #fff; }
.cta p { color: var(--muted); }
.cta .btn { margin: .35rem .25rem 0; }
.draft-bar {
    background: rgba(216, 164, 69, .12); color: var(--brass-deep); text-align: center;
    padding: .5rem 1rem; font-size: .88rem; font-weight: 600;
    border-bottom: 1px solid rgba(216, 164, 69, .22);
}

/* ---------- تیکت ---------- */
.form-note { margin: .7rem 0 0; font-size: .8rem; color: var(--muted); text-align: center; }

.ticket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.ticket-head h1 { margin-bottom: .2rem; }
.ticket-head-meta { margin: 0; font-size: .88rem; color: var(--muted); }
.ticket-badges { display: flex; gap: .4rem; flex-wrap: wrap; }

.badge {
    display: inline-block; padding: .1rem .75rem; border-radius: 99px;
    font-size: .78rem; font-weight: 700; line-height: 1.9;
    border: 1px solid transparent; white-space: nowrap;
}
.badge-new { background: rgba(216, 164, 69, .16); color: var(--brass-deep); border-color: rgba(216, 164, 69, .32); }
.badge-open { background: rgba(96, 165, 250, .14); color: #93c5fd; border-color: rgba(96, 165, 250, .3); }
.badge-answered { background: rgba(26, 164, 87, .14); color: #7ee2a8; border-color: rgba(26, 164, 87, .3); }
.badge-resolved { background: rgba(148, 163, 184, .14); color: #cbd5e1; border-color: rgba(148, 163, 184, .3); }
.badge-closed { background: rgba(148, 163, 184, .1); color: #94a3b8; border-color: rgba(148, 163, 184, .22); }
.badge-high { background: rgba(239, 68, 68, .16); color: #fca5a5; border-color: rgba(239, 68, 68, .32); }

.ticket-saved {
    margin: 0 0 1.6rem; padding: 1.05rem 1.2rem; border-radius: 14px;
    background: rgba(26, 164, 87, .1); border: 1px solid rgba(26, 164, 87, .3);
    color: #c7efd8;
}
.ticket-saved strong { color: #7ee2a8; }
.ticket-saved p { margin: .35rem 0 0; font-size: .92rem; }

.ticket-thread { display: grid; gap: 1rem; margin: 1.4rem 0 2rem; }
.ticket-msg { display: grid; gap: .45rem; }
.ticket-msg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: .84rem; color: var(--muted); }
.ticket-msg-head strong { color: var(--ink); font-size: .9rem; }
.ticket-bubble {
    padding: .9rem 1.1rem; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--line);
    font-size: .96rem; line-height: 1.95; color: #ddd9d1;
}
.ticket-msg-customer .ticket-bubble { border-start-end-radius: 6px; }
.ticket-msg-staff .ticket-bubble {
    background: linear-gradient(180deg, rgba(216, 164, 69, .12), rgba(216, 164, 69, .04));
    border-color: rgba(216, 164, 69, .32);
    border-start-start-radius: 6px;
}
.ticket-attach { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ticket-attach a {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .25rem .8rem; border-radius: 9px; font-size: .84rem;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); color: #cbc8c0;
    transition: all .2s;
}
.ticket-attach a:hover { border-color: rgba(216, 164, 69, .45); color: var(--brass-deep); background: rgba(216, 164, 69, .08); }
.ticket-attach em { font-style: normal; color: var(--muted); font-size: .8rem; }

.ticket-reply { margin-top: 1rem; }
.ticket-reply h2 { font-size: 1.15rem; margin-bottom: .9rem; }
.ticket-closed-note {
    padding: .8rem 1.1rem; border-radius: 12px; margin: 0 0 1rem;
    background: rgba(148, 163, 184, .1); border: 1px solid var(--line-2);
    font-size: .9rem; color: var(--muted);
}
.ticket-foot { margin-top: 1.6rem; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- فوتر ---------- */
.site-footer {
    position: relative; overflow: hidden;
    background: #0b0d12;
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 3.4rem 0 0; font-size: .94rem;
}
.site-footer::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(34rem 18rem at 92% 0%, rgba(216, 164, 69, .07), transparent 62%);
}
.site-footer h3 { color: #fff; font-size: .97rem; margin-bottom: .85rem; }
.site-footer a { color: #a8a59d; transition: color .2s; }
.site-footer a:hover { color: var(--brass-deep); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.15fr; gap: 2.2rem; padding-bottom: 2.2rem; position: relative; }
.footer-bottom {
    border-top: 1px solid var(--line); padding: 1rem 0;
    font-size: .84rem; color: #6f6c66; position: relative;
}

/* ---------- دکمه شناور واتساپ ---------- */
.wa-fab {
    position: fixed; bottom: 1.35rem; left: 1.35rem; z-index: 60;
    display: grid; place-items: center; width: 57px; height: 57px; border-radius: 50%;
    background: linear-gradient(135deg, #1eb45f, var(--wa-dark)); color: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
    transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s;
}
.wa-fab:hover { transform: scale(1.09) rotate(4deg); box-shadow: 0 14px 34px rgba(26, 164, 87, .4); }
.wa-fab svg { width: 28px; height: 28px; }
.wa-fab::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid rgba(30, 180, 95, .5);
    animation: wa-pulse 2.4s ease-out infinite;
}
.wa-fab::after {
    content: 'گفتگو در واتساپ';
    position: absolute; top: 50%; right: calc(100% + 13px);
    transform: translateY(-50%) translateX(6px);
    background: #fff; color: #17130c;
    font-size: .8rem; font-weight: 800; white-space: nowrap;
    padding: .42rem .95rem; border-radius: 9px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
    opacity: 0; pointer-events: none;
    transition: opacity .24s, transform .24s;
}
.wa-fab:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
@keyframes wa-pulse {
    0% { transform: scale(1); opacity: .75; }
    70%, 100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- بازگشت به بالا ---------- */
.to-top {
    position: fixed; bottom: 1.45rem; right: 1.45rem; z-index: 60;
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line-2);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: all .3s cubic-bezier(.2,.8,.2,1);
    cursor: pointer;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--surface-2); border-color: rgba(216, 164, 69, .4); color: var(--brass-deep); transform: translateY(-3px); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- انیمیشن ورود با اسکرول ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- صفحه‌های مستقل ---------- */
.page-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.page-head-center { text-align: center; }
.page-head-center .crumbs { justify-content: center; }
.page-head-center p { margin-inline: auto; }
.page-head-center .page-actions { justify-content: center; }
.page-head-center .chips { justify-content: center; }
.nav > a[aria-current="page"] { color: #fff; }
.nav > a[aria-current="page"]::after { transform: scaleX(1); }

.grid-2 { grid-template-columns: repeat(2, 1fr); }

.service-list { display: grid; gap: 1.4rem; }
.service-detail {
    padding: 1.8rem 1.7rem; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .3s, background .3s;
}
.service-detail:hover { border-color: rgba(216, 164, 69, .24); background: var(--surface-2); }
.service-detail-head { display: flex; gap: 1.1rem; align-items: flex-start; }
.service-detail-head .icon {
    flex: none; width: 52px; height: 52px; display: grid; place-items: center;
    border-radius: 14px; background: var(--brass-soft); color: var(--brass-bright);
    border: 1px solid rgba(216, 164, 69, .24);
}
.service-detail-head .icon svg { width: 24px; height: 24px; }
.service-detail-head h2 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); margin-bottom: .25rem; }
.service-detail-head p { margin: 0; color: var(--muted); }
.service-detail-body { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.service-detail-body .ticks { grid-template-columns: repeat(2, 1fr); gap: .55rem 1.5rem; }
.service-fit { margin: 1.15rem 0 0; font-size: .9rem; color: var(--muted); }
.service-fit strong { color: var(--ink); }

.notice {
    margin: 2rem 0 0; padding: 1.15rem 1.35rem;
    background: var(--brass-tint); border: 1px solid rgba(216, 164, 69, .22);
    border-radius: var(--radius); color: var(--text); font-size: .95rem;
}
.notice-lg { text-align: center; padding: 2.1rem 1.8rem; margin: 0; }
.notice-lg h2 { font-size: 1.3rem; }
.notice-lg p { color: var(--muted); }
.notice-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1.2rem 0 0; }

.about-story { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2.6rem; align-items: start; }
.about-stats { display: grid; gap: .8rem; }
.about-stats > div { padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.about-stats strong { display: block; font-size: 1.3rem; color: var(--brass-deep); }
.about-stats span { font-size: .85rem; color: var(--muted); }
.principle { padding: 1.35rem 1.3rem; }
.principle h3 { font-size: 1rem; margin-bottom: .3rem; }
.principle p { margin: 0; font-size: .9rem; color: var(--muted); }
.about-lists { align-items: stretch; }
.about-lists .card { padding: 1.6rem 1.5rem; display: flex; flex-direction: column; }
.about-lists .card h2 { font-size: 1.2rem; }
.about-lists .ticks { flex: 1; margin-bottom: 1.3rem; }

.case-card { padding: 1.5rem 1.4rem; }
.case-cat {
    display: inline-block; padding: .1rem .7rem; border-radius: 99px;
    background: var(--brass-soft); color: var(--brass-bright);
    font-size: .76rem; font-weight: 700; margin-bottom: .6rem;
}
.case-client { color: var(--muted); font-size: .88rem; }
.case-card p { font-size: .92rem; }
.case-link { font-weight: 700; font-size: .9rem; border-bottom: 1px solid rgba(216, 164, 69, .35); }
.testimonial { margin: 0; padding: 1.6rem 1.5rem; display: flex; flex-direction: column; }
.testimonial p { flex: 1; font-size: .95rem; }
.testimonial footer { display: grid; gap: .1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.testimonial footer strong { color: var(--ink); font-size: .92rem; }
.testimonial footer span { color: var(--muted); font-size: .83rem; }

.contact-checklist { margin-top: 1.9rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.contact-checklist h3 { font-size: 1.02rem; }
.legal-meta { font-size: .86rem; color: var(--muted); margin-bottom: 1.2rem; }
.legal-toc { margin-bottom: 1.4rem; }
.legal-toc ol { columns: 2; column-gap: 2rem; }
.legal-prose section h2 { scroll-margin-top: 110px; }
.legal-prose section:first-child h2 { margin-top: 0; border-top: 0; padding-top: 0; }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.2rem; }
.footer-legal { display: flex; align-items: center; gap: .5rem; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; }
    .hero-points { grid-template-columns: repeat(3, 1fr); }
    .plans, .grid-3 { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .about-story { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (max-width: 860px) {
    /* چیدمان ساده: نشان راست، دکمه‌ها و منوی همبرگری چپ */
    .header-inner { display: flex; align-items: center; gap: .55rem; }
    .brand { margin-inline-end: auto; }

    .nav {
        display: none; position: absolute; top: 100%; inset-inline: 0;
        /* بدون این خط، justify-self چیدمان دسکتاپ باعث می‌شود کشوی موبایل جمع شود */
        justify-self: stretch; width: auto;
        flex-direction: column; align-items: stretch; gap: .15rem;
        background: rgba(15, 17, 22, .98); backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line); padding: .85rem 1.3rem 1.3rem;
        box-shadow: 0 24px 44px rgba(0, 0, 0, .55);
    }
    .nav.open { display: flex; animation: rise .28s ease; }
    .nav > a:not(.btn) { padding: .5rem 0; font-size: 1rem; }
    .nav-toggle { display: block; }
    .header-wa { display: none; }
    .label-long { display: none; }
    .label-short { display: inline; }
}

@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
}

/* در عرض‌های خیلی باریک، نشان فقط علامت W را نشان می‌دهد تا دکمه‌ها جا شوند */
@media (max-width: 400px) {
    .brand > span:not(.brand-mark) { display: none; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .hero-points { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr; }
    .plans, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
    .field-row { flex-direction: column; gap: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-card { padding: 1.3rem; }
    .hero-actions .btn { width: 100%; }
    .wa-fab { width: 52px; height: 52px; bottom: .9rem; left: .9rem; }
    .to-top { width: 40px; height: 40px; bottom: .95rem; right: .95rem; }
    .service, .plan { padding: 1.45rem 1.25rem; }
    .service-detail { padding: 1.4rem 1.2rem; }
    .service-detail-body .ticks { grid-template-columns: 1fr; }
    .legal-toc ol { columns: 1; }
    .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- احترام به کاهش حرکت ---------- */
/* ==================== صفحه ۴۰۴ ==================== */
.error-hero {
    position: relative; overflow: hidden; text-align: center;
    background:
        radial-gradient(46rem 26rem at 50% -18%, rgba(216, 164, 69, .18) 0%, transparent 62%),
        radial-gradient(34rem 22rem at 88% 110%, rgba(120, 130, 190, .1) 0%, transparent 60%),
        var(--paper);
    padding: clamp(3rem, 7vw, 5.4rem) 0 clamp(2.6rem, 5vw, 4rem);
    border-bottom: 1px solid var(--line);
}
.error-inner { position: relative; z-index: 1; }
.error-code {
    display: block;
    font-size: clamp(5rem, 19vw, 10.5rem);
    font-weight: 900; line-height: .82; letter-spacing: -.04em;
    background: var(--grad-brass);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0 14px 38px rgba(216, 164, 69, .26));
    animation: floatCode 7s ease-in-out infinite alternate;
    user-select: none;
}
.error-hero h1 { margin: 1.5rem 0 .75rem; font-size: clamp(1.4rem, 3.4vw, 2rem); }
.error-hero .lead { margin: 0 auto; max-width: 54ch; }
.error-actions {
    display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center;
    margin: 1.8rem 0 0;
}
.cta .error-actions { margin-top: 1.4rem; }

/* فهرست کوتاه مقاله‌ها در صفحه ۴۰۴ */
.error-latest { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.error-latest a {
    display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
    padding: .95rem 1.25rem; border: 1px solid var(--line); border-radius: 14px;
    background: var(--surface); color: var(--ink);
    transition: border-color .25s, background .25s, transform .25s, box-shadow .25s;
}
.error-latest a::before {
    content: '‹'; flex: none; order: 3; font-size: 1.35rem; line-height: 1;
    color: var(--brass-bright); transition: transform .25s;
}
.error-latest a:hover {
    border-color: rgba(216, 164, 69, .38); background: rgba(216, 164, 69, .06);
    transform: translateY(-1px); box-shadow: var(--shadow-sm, 0 8px 20px rgba(0, 0, 0, .25));
}
.error-latest a:hover::before { transform: translateX(-4px); }
.error-latest-title { font-weight: 700; font-size: 1rem; }
.error-latest-meta {
    display: flex; align-items: center; gap: .7rem; flex: none;
    font-size: .82rem; color: var(--muted);
}
.error-latest-cat {
    padding: .12rem .55rem; border-radius: 7px;
    background: var(--brass-soft); color: var(--brass-bright); font-weight: 700;
}
@media (max-width: 560px) {
    .error-latest a { flex-direction: column; align-items: flex-start; gap: .45rem; padding: .9rem 1.05rem; }
    .error-latest a::before { display: none; }
}

@keyframes floatCode {
    from { transform: translateY(-7px); }
    to { transform: translateY(7px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .rotator > span { opacity: 0; }
    .rotator > span:first-child { opacity: 1; }
}