/* صفحه‌ی تحقیق و توسعه (پیشوند .rd) — بدون دست‌زدن به هدر و فوتر */
.rd { --navy: #0B3B3A; --navy2: #0F4B49; --blue: #00706F; --cyan: #2FD3B5; --ink: #14302F; --muted: #64748b; --paper: #F4F8F7; --line: #e4ebf3; color: var(--ink); line-height: 1.95; }
.rd a { text-decoration: none; }
.rd-wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.rd-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(100deg, rgba(8,45,44,.94) 0%, rgba(11,59,58,.86) 55%, rgba(11,59,58,.5) 100%), var(--bg) center/cover; min-height: 600px; display: flex; align-items: center; }
.rd-hero::after { content: ""; position: absolute; inset: auto -10% -220px auto; width: 600px; height: 400px; border-radius: 50%; background: rgba(47,211,181,.16); filter: blur(24px); }
.rd-hero__in { position: relative; z-index: 1; max-width: 760px; padding: 90px 0 120px; margin-inline: auto; margin-inline-start: max(20px, calc((100% - 1160px) / 2)); width: auto; }
.rd-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #a9f1ec; font-size: 12px; font-weight: 800; letter-spacing: .5px; }
.rd-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--cyan); }
.rd-hero h1 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.4; margin: 16px 0 18px; font-weight: 900; color: #fff; }
.rd-hero p { font-size: 17px; color: #d5e1ed; max-width: 650px; margin: 0 0 28px; }
.rd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.rd-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; padding: 12px 22px; background: var(--cyan); color: #06302E; font-weight: 800; font-size: 14px; box-shadow: 0 14px 28px -16px rgba(47,211,181,.9); transition: transform .2s; }
.rd-btn:hover { transform: translateY(-3px); }
.rd-btn--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); box-shadow: none; }
.rd-btn--light { background: #fff; color: var(--navy); }
.rd-note-hero { margin-top: 26px !important; font-size: 13px !important; color: #b8c9da !important; } .rd-note-hero b { color: #fff; }
.rd-metrics-wrap { position: relative; margin-top: -54px; z-index: 2; }
.rd-metrics { list-style: none; margin: 0; padding: 22px 10px; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 26px; box-shadow: 0 30px 60px -34px rgba(11,59,58,.55); }
.rd-metrics li { text-align: center; padding: 6px 14px; border-inline-start: 1px solid var(--line); } .rd-metrics li:first-child { border: 0; }
.rd-metrics b { display: block; font-size: 32px; color: var(--blue); font-weight: 900; line-height: 1.5; } .rd-metrics span { font-size: 12.5px; color: var(--muted); }
.rd-sec { padding: 84px 0; } .rd-soft { background: var(--paper); }
.rd-head { max-width: 740px; margin: 0 auto 42px; text-align: center; }
.rd-kicker { font-size: 12px; font-weight: 900; color: var(--blue); letter-spacing: .4px; }
.rd-head h2 { font-size: clamp(25px, 3.4vw, 38px); line-height: 1.5; margin: 8px 0 12px; color: var(--navy); font-weight: 900; } .rd-head p { color: var(--muted); font-size: 14.5px; margin: 0; }
.rd-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.rd-intro__img { position: relative; margin: 0; } .rd-intro__img img { width: 100%; height: 420px; object-fit: cover; border-radius: 28px; display: block; box-shadow: 0 40px 60px -40px rgba(8,45,44,.7); }
.rd-intro__img figcaption { position: absolute; inset-block-end: 20px; inset-inline-end: 20px; background: #fff; padding: 11px 17px; border-radius: 14px; font-size: 12px; font-weight: 800; box-shadow: 0 14px 30px -14px rgba(8,45,44,.4); }
.rd-intro__copy h2 { font-size: 32px; line-height: 1.5; color: var(--navy); margin: 8px 0 16px; font-weight: 900; } .rd-intro__copy p { color: #596b7f; font-size: 14.5px; }
.rd-checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rd-checks li { font-size: 13.5px; color: #29445e; } .rd-checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; background: #e3f8f5; color: #078b83; border-radius: 7px; margin-inline-end: 8px; font-weight: 900; }
.rd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rd-card { background: #fff; border-radius: 24px; padding: 28px 24px; box-shadow: 0 24px 44px -34px rgba(11,59,58,.5); transition: transform .25s, box-shadow .25s; }
.rd-card:hover { transform: translateY(-6px); box-shadow: 0 34px 52px -30px rgba(11,59,58,.55); }
.rd-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #e3f6fb, #eaf0fc); color: var(--blue); margin-bottom: 16px; } .rd-ic svg { width: 26px; height: 26px; }
.rd-card h3 { font-size: 17px; color: var(--navy); margin: 0 0 8px; font-weight: 900; } .rd-card p { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.rd-tags { display: flex; flex-wrap: wrap; gap: 7px; direction: ltr; } .rd-tags span { font-size: 11px; color: #42617d; background: #eef4f9; padding: 4px 11px; border-radius: 30px; }
.rd-labs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.rd-lab { display: grid; grid-template-columns: 42% 1fr; min-height: 250px; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 28px 48px -36px rgba(11,59,58,.55); }
.rd-lab img { width: 100%; height: 100%; min-height: 250px; object-fit: cover; transition: transform .6s; } .rd-lab:hover img { transform: scale(1.05); }
.rd-lab > div { padding: 24px; } .rd-lab small { color: var(--blue); font-weight: 800; font-size: 10.5px; direction: ltr; display: block; } .rd-lab h3 { font-size: 18px; color: var(--navy); margin: 6px 0; font-weight: 900; } .rd-lab p { font-size: 13px; color: var(--muted); margin: 0; }
.rd-dark { background: radial-gradient(900px 400px at 85% 0%, rgba(47,211,181,.22), transparent 60%), linear-gradient(135deg, #0B3B3A, #103b60); color: #fff; }
.rd-dark .rd-head h2 { color: #fff; } .rd-dark .rd-head p { color: #c3d3e2; } .rd-dark .rd-kicker { color: #65e0df; }
.rd-pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; position: relative; }
.rd-pipe li { position: relative; padding: 22px 16px 20px; border-radius: 22px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(4px); text-align: center; }
.rd-pipe li:not(:last-child)::after { content: "›"; position: absolute; inset-inline-end: -14px; inset-block-start: 40px; color: #65e0df; font-size: 24px; z-index: 1; }
[dir="rtl"] .rd-pipe li:not(:last-child)::after { content: "‹"; }
.rd-pipe span { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 15px; background: linear-gradient(135deg, var(--cyan), #00706F); font-weight: 900; font-size: 15px; }
.rd-pipe b { display: block; font-size: 14.5px; } .rd-pipe em { display: block; font-style: normal; font-size: 11px; color: #8fe7e4; margin-bottom: 8px; direction: ltr; } .rd-pipe p { margin: 0; font-size: 12px; color: #c3d3e2; line-height: 1.8; }
.rd-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.rd-steps > div { text-align: center; padding: 0 6px; } .rd-steps span { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 17px; background: #eaf5fc; color: var(--blue); font-weight: 900; font-size: 18px; }
.rd-steps h3 { font-size: 14px; color: var(--navy); margin: 0 0 6px; font-weight: 900; } .rd-steps p { font-size: 12px; color: var(--muted); margin: 0; }
.rd-portfolio { display: grid; grid-template-columns: 1.3fr .7fr; grid-template-rows: 1fr 1fr; gap: 22px; }
.rd-project { position: relative; min-height: 190px; border-radius: 26px; overflow: hidden; color: #fff; background: #0b2945; }
.rd-project--big { grid-row: span 2; min-height: 400px; }
.rd-project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; } .rd-project:hover img { transform: scale(1.05); }
.rd-project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,45,44,.95) 0%, rgba(8,45,44,.1) 78%); }
.rd-project > div { position: absolute; z-index: 1; inset-inline: 26px; inset-block-end: 22px; } .rd-project small { color: #80e6e2; font-size: 11px; font-weight: 800; direction: ltr; display: block; }
.rd-project h3 { font-size: 20px; margin: 6px 0; font-weight: 900; color: #fff; } .rd-project p { font-size: 12.5px; color: #d2deea; margin: 0; }
.rd-note { font-size: 12px; color: #7c8da0; margin: 18px 0 0; text-align: center; }
.rd-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rd-numbers > div { background: #fff; border-radius: 22px; padding: 24px; box-shadow: 0 24px 44px -34px rgba(11,59,58,.5); } .rd-numbers b { display: block; font-size: 20px; color: var(--blue); font-weight: 900; margin-bottom: 6px; } .rd-numbers span { font-size: 13px; color: var(--muted); }
.rd-collab { background: linear-gradient(110deg, #0b2c49, #00706F); color: #fff; border-radius: 32px; padding: 50px; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.rd-collab h2 { font-size: 27px; margin: 0 0 8px; color: #fff; font-weight: 900; } .rd-collab p { color: #d4e5f3; font-size: 14px; margin: 0; max-width: 650px; }
.rd-faq { max-width: 860px; } .rd-faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.rd-faq summary { font-weight: 800; color: var(--navy); cursor: pointer; font-size: 15px; } .rd-faq details p { color: var(--muted); font-size: 13.5px; margin: 10px 0 0; }
@media (max-width: 960px) { .rd-cards { grid-template-columns: repeat(2, 1fr); } .rd-pipe { grid-template-columns: repeat(3, 1fr); } .rd-pipe li::after { display: none !important; } .rd-steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; } .rd-labs { grid-template-columns: 1fr; } .rd-intro { gap: 30px; } }
@media (max-width: 640px) { .rd-hero { min-height: 560px; } .rd-hero__in { padding: 70px 0 100px; margin-inline-start: 20px; } .rd-metrics { grid-template-columns: repeat(2, 1fr); } .rd-metrics li { border: 0; padding: 12px 6px; } .rd-sec { padding: 60px 0; } .rd-intro { grid-template-columns: 1fr; } .rd-intro__img img { height: 280px; } .rd-cards, .rd-numbers { grid-template-columns: 1fr; } .rd-lab { grid-template-columns: 1fr; } .rd-lab img { height: 190px; min-height: 190px; } .rd-pipe { grid-template-columns: repeat(2, 1fr); } .rd-steps { grid-template-columns: repeat(2, 1fr); } .rd-portfolio { grid-template-columns: 1fr; grid-template-rows: none; } .rd-project--big { grid-row: auto; min-height: 280px; } .rd-collab { padding: 30px 22px; } .rd-checks { grid-template-columns: 1fr; } }

/* هماهنگی با رنگ‌های سایت: دکمه‌ی اصلی و خط برچسب زرد */
.rd-btn { background: #FFC21A; color: #14302F; box-shadow: 0 14px 28px -16px rgba(255,194,26,.9); }
.rd-btn--ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.rd-btn--light { background: #fff; color: var(--navy); box-shadow: none; }
.rd-eyebrow::before { background: #FFC21A; }

/* هیرو زیر هدر شناور برود (مثل بقیه‌ی صفحه‌ها) تا نوار سفید بالای صفحه نماند */
.rd-hero { margin-top: -78px; min-height: 678px; }
.rd-hero__in { padding-top: 168px; }
@media (max-width: 640px) { .rd-hero { min-height: 640px; } .rd-hero__in { padding-top: 150px; } }
.rd-intro__img img { height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
