/* The public «همکاری با ما» page (templates/pages/partnership.html). */
:root { --ps-bg: #0d0d12; --ps-card: #161a2b; --ps-card2: #1d2238; --ps-line: rgba(255, 255, 255, .09); --ps-text: #fff; --ps-sub: #a0a3b1; --ps-field: rgba(0, 0, 0, .28); --ps-blue: #3e69fe; --ps-blue2: #7c5cff; --ps-bad: #f87171; --ps-ok: #10b981; }
:root[data-theme="light"] { --ps-bg: #f3f4f6; --ps-card: #fff; --ps-card2: #f7f8fc; --ps-line: rgba(0, 0, 0, .09); --ps-text: #1f2937; --ps-sub: #4b5563; --ps-field: #f9fafb; --ps-bad: #dc2626; }

.pship { background: var(--ps-bg); color: var(--ps-text); padding-bottom: clamp(2rem, 6vw, 4rem); }
.pship a { color: var(--ps-blue); }

.pship-hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 7vw, 5rem) 1rem clamp(2.5rem, 6vw, 4rem); text-align: center; }
.pship-glow { position: absolute; inset: -40% 10% auto; height: 420px; background: radial-gradient(closest-side, rgba(62, 105, 254, .35), transparent); filter: blur(20px); animation: ps-float 8s ease-in-out infinite alternate; pointer-events: none; }
.pship-hero > :not(.pship-glow) { position: relative; }
.pship-kicker { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .9rem; border: 1px solid var(--ps-line); border-radius: 999px; background: var(--ps-card); font-size: .82rem; color: var(--ps-sub); }
.pship-hero h1 { max-width: 720px; margin: 1rem auto .7rem; font-size: clamp(1.7rem, 5.4vw, 2.7rem); font-weight: 900; line-height: 1.35; }
.pship-hero p { max-width: 560px; margin: 0 auto; color: var(--ps-sub); line-height: 1.9; }
.pship-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.3rem; }
.pship .pship-links a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border: 1px solid var(--ps-line); border-radius: 11px; background: var(--ps-card); color: var(--ps-text); font-size: .88rem; transition: transform .2s ease, border-color .2s ease; }
.pship .pship-links a:hover { transform: translateY(-2px); border-color: var(--ps-blue); }

.pship-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; max-width: 1040px; margin: 0 auto 1.8rem; padding: 0 1rem; }
.pship-features article { padding: 1.1rem; background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: 16px; animation: ps-rise .5s cubic-bezier(.22, .8, .24, 1) both; transition: transform .22s ease, border-color .22s ease; }
.pship-features article:nth-child(2) { animation-delay: .06s; } .pship-features article:nth-child(3) { animation-delay: .12s; } .pship-features article:nth-child(4) { animation-delay: .18s; }
.pship-features article:hover { transform: translateY(-3px); border-color: rgba(62, 105, 254, .5); }
.pship-features i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--ps-blue), var(--ps-blue2)); color: #fff; font-size: .95rem; }
.pship-features h2 { margin: .7rem 0 .2rem; font-size: .98rem; }
.pship-features p { margin: 0; color: var(--ps-sub); font-size: .84rem; line-height: 1.7; }

.pship-layout { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 1.5rem; max-width: 1040px; margin: 0 auto; padding: 0 1rem; align-items: start; }
.pship-side { position: sticky; top: 130px; padding: 1.2rem; background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: 16px; }
.pship-side h2 { margin: 0 0 1rem; font-size: 1.02rem; }
.pship-steps { list-style: none; margin: 0; padding: 0; }
.pship-steps li { position: relative; display: flex; gap: .7rem; padding-bottom: 1.05rem; }
.pship-steps li:last-child { padding-bottom: 0; }
.pship-steps li:not(:last-child)::before { content: ""; position: absolute; inset-block: 30px 0; inset-inline-start: 14px; width: 2px; background: var(--ps-line); }
.pship-steps span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ps-card2); border: 1px solid var(--ps-line); font-size: .82rem; font-weight: 700; }
.pship-steps strong { display: block; font-size: .9rem; }
.pship-steps small { color: var(--ps-sub); font-size: .8rem; line-height: 1.7; }

.pship-card { display: flex; flex-direction: column; gap: 1.1rem; padding: clamp(1.1rem, 4vw, 1.8rem); background: var(--ps-card); border: 1px solid var(--ps-line); border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.pship-card > h2 { margin: 0; font-size: 1.15rem; }
.pship-card fieldset { display: flex; flex-direction: column; gap: .9rem; min-width: 0; margin: 0; padding: 0 0 1.1rem; border: 0; border-bottom: 1px solid var(--ps-line); }
.pship-card legend { padding: 0 0 .7rem; color: var(--ps-sub); font-size: .8rem; font-weight: 700; }
.pship-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; font-size: .88rem; font-weight: 700; }
.pship-field input, .pship-field select, .pship-field textarea { width: 100%; box-sizing: border-box; padding: .68rem .85rem; border: 1px solid var(--ps-line); border-radius: 11px; background: var(--ps-field); color: var(--ps-text); font: inherit; font-weight: 400; transition: border-color .18s ease, box-shadow .18s ease; }
.pship-field input:focus, .pship-field select:focus, .pship-field textarea:focus { outline: 0; border-color: var(--ps-blue); box-shadow: 0 0 0 3px rgba(62, 105, 254, .2); }
.pship-field small { color: var(--ps-sub); font-weight: 400; font-size: .76rem; }
.pship small.bad { color: var(--ps-bad); font-weight: 400; font-size: .8rem; }
.pship-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.pship-accept { display: flex; align-items: center; gap: .55rem; font-size: .88rem; cursor: pointer; }
.pship-accept input { width: 18px; height: 18px; flex: none; accent-color: var(--ps-blue); }
.pship-submit, .pship a.pship-submit { display: block; padding: .85rem; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--ps-blue), var(--ps-blue2)); color: #fff; font: inherit; font-weight: 700; text-align: center; cursor: pointer; transition: transform .16s ease, box-shadow .2s ease; }
.pship-submit:hover { box-shadow: 0 10px 24px rgba(62, 105, 254, .35); }
.pship-submit:active { transform: scale(.98); }
.pship-error { padding: .65rem .85rem; border-radius: 11px; background: rgba(239, 68, 68, .13); color: var(--ps-bad); font-size: .88rem; }
.pship-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pship-done { max-width: 520px; margin: 0 auto; align-items: center; text-align: center; }
.pship-done-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(16, 185, 129, .15); color: var(--ps-ok); font-size: 1.6rem; }
.pship-done h2 { margin: 0; }
.pship-done p { margin: 0; color: var(--ps-sub); line-height: 1.9; }
.pship-done .pship-submit { align-self: stretch; }

@keyframes ps-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ps-float { from { transform: translateY(-10px); } to { transform: translateY(14px); } }
@media (max-width: 860px) {
    .pship-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pship-layout { grid-template-columns: minmax(0, 1fr); }
    .pship-side { position: static; }
}
@media (max-width: 520px) { .pship-two { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .pship *, .pship *::before { animation: none !important; transition: none !important; } }
