/* جزئیات خدمت */
.sd-main { padding-top: clamp(50px, 6vw, 80px); }
.sd-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }

/* تصویر خدمت */
.sd-media { position: relative; margin: 0; min-height: 440px; border-radius: 26px; overflow: hidden; background: #1c1530; box-shadow: 0 40px 80px -55px rgba(22, 26, 44, .7); isolation: isolate; }
.sd-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.sd-media:hover img { transform: scale(1.05); }
.sd-media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(120, 8, 14, .85), rgba(179, 20, 27, .25) 45%, transparent 70%); }
.sd-media::after { content: ''; position: absolute; z-index: 1; top: 18px; inset-inline-end: 18px; width: 120px; height: 120px; background: radial-gradient(rgba(255, 255, 255, .45) 1.2px, transparent 1.6px) 0 0 / 14px 14px; -webkit-mask: radial-gradient(circle, #000, transparent 70%); mask: radial-gradient(circle, #000, transparent 70%); }
.sd-media figcaption { position: absolute; z-index: 2; inset: auto 18px 18px; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 20px; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(10px); }
.sd-media__ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #fff; color: var(--red); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5); }
.fl .sd-media__ico svg { width: 24px; height: 24px; }
.sd-media figcaption b { display: block; font-size: 1.1rem; line-height: 1.5; }
.sd-media figcaption span { font-size: .85rem; opacity: .85; }

/* عنوان بلوک‌ها */
.sd-title { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.sd-title p { color: var(--red-d); font-weight: 700; font-size: .85rem; }
.sd-title h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 800; color: var(--ink); line-height: 1.4; }

/* ویژگی‌ها */
.sd-feats { display: flex; flex-direction: column; isolation: isolate; }
.sd-feats::after { content: ''; position: absolute; z-index: -1; left: -30px; bottom: -30px; width: 180px; height: 180px; background: var(--dots); -webkit-mask: radial-gradient(circle, #000, transparent 70%); mask: radial-gradient(circle, #000, transparent 70%); }
.sd-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.sd-list li { display: flex; align-items: flex-start; gap: .7rem; padding: .7rem .9rem; border-radius: 14px; background: linear-gradient(150deg, #fff7f8, #fff); border: 1px solid #f6e3e6; color: var(--ink-2); font-size: .95rem; line-height: 1.75; transition: transform .3s var(--ease), border-color .3s; }
.sd-list li:hover { transform: translateX(-4px); border-color: rgba(227, 36, 43, .3); }
.fl .sd-list svg { flex: none; width: 22px; height: 22px; margin-top: .15rem; padding: 4px; border-radius: 50%; color: #fff; background: var(--badge); stroke-width: 2.8; }
.sd-list span { min-width: 0; overflow-wrap: anywhere; }
.sd-list__soon { color: var(--muted) !important; }
.fl .sd-list__soon svg { background: #f0d9dc; color: var(--red-d); }
.sd-feats__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: auto; padding-top: 1.8rem; }

/* توضیحات کامل */
.sd-desc { isolation: isolate; }
.sd-desc::after { content: ''; position: absolute; z-index: -1; left: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(227, 36, 43, .04); }
.sd-desc .f-prose { max-width: 980px; }

/* خدمت قبلی / بعدی */
.sd-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px; }
.sd-nav__btn { position: relative; overflow: hidden; display: flex; align-items: center; gap: 1rem; min-height: 96px; padding: 1.1rem 1.3rem; border-radius: 22px; background: #fff; border: 1px solid rgba(235, 228, 231, .9); box-shadow: 0 24px 50px -40px rgba(22, 26, 44, .5); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.sd-nav__btn.next { justify-content: flex-end; text-align: left; }
.sd-nav__btn::before { content: ''; position: absolute; top: 0; right: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--rose), var(--red), var(--red-2)); transition: width .5s var(--ease); }
a.sd-nav__btn:hover { transform: translateY(-5px); border-color: rgba(227, 36, 43, .22); box-shadow: 0 36px 70px -40px rgba(227, 36, 43, .45); }
a.sd-nav__btn:hover::before { width: 100%; }
.sd-nav__btn small { display: block; color: var(--red-d); font-size: .8rem; font-weight: 700; }
.sd-nav__btn b { display: block; color: var(--ink); font-size: 1rem; line-height: 1.6; }
.sd-nav__ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fde8e9; color: var(--red); transition: background .3s, color .3s, transform .3s var(--ease); }
a.sd-nav__btn:hover .sd-nav__ico { background: var(--red); color: #fff; }
a.sd-nav__btn.prev:hover .sd-nav__ico { transform: translateX(4px); }
a.sd-nav__btn.next:hover .sd-nav__ico { transform: translateX(-4px); }
.sd-nav__btn.disabled { opacity: .55; box-shadow: none; background: #fbfafb; }
.sd-nav__btn.disabled .sd-nav__ico { background: #f0eef1; color: var(--muted); }
.sd-nav__all { position: relative; display: grid; place-items: center; gap: 0; width: 64px; height: 64px; border-radius: 50%; color: #fff; background: var(--badge); box-shadow: 0 14px 26px -12px rgba(227, 36, 43, .75), 0 0 0 6px #fff; transition: transform .4s var(--ease); }
.sd-nav__all span { position: absolute; inset: auto 0 -1.7rem; text-align: center; color: var(--muted); font-size: .78rem; font-weight: 700; }
.fl .sd-nav__all svg { width: 24px; height: 24px; }
.sd-nav__all:hover { transform: rotate(-8deg) scale(1.06); }

@media (max-width: 960px) {
    .sd-split { grid-template-columns: 1fr; }
    .sd-media { min-height: 320px; }
}
@media (max-width: 700px) {
    .sd-nav { grid-template-columns: 1fr; }
    .sd-nav__all { justify-self: center; margin-bottom: 1.4rem; }
    .sd-nav__btn.next { justify-content: space-between; text-align: right; }
    .sd-feats__cta .f-btn { flex: 1 1 auto; justify-content: center; }
    .sd-media figcaption { inset: auto 12px 12px; padding: .8rem; }
}
