Call $(i,j)$ a $D$-pair, corr. $\Delta$-pair, if $d_i\geqslant \delta_j+k$, corr. $\delta_j\geqslant d_i+k$. Since $k>n/2$, we have $d_i>n/2$ for a $D$-pair $(i,j)$ and $d_i<n/2$ for a $\Delta$-pair $(i,j)$. Thus there exists $i_0\in \{1,2,\ldots,n+1\}$ such that $i\leqslant i_0-1$ for any $D$-pair $(i,j)$, and $i\geqslant i_0$ for any $\Delta$-pair $(i,j)$.
$i\leqslant i_0-1$ for any $D$-pair $(i,j)$, and $i\geqslant i_0$ for any $\Delta$-pair $(i,j)$.
Analogously, choose $j_0\in \{1,2,\ldots,n+1\}$ such that $j\leqslant j_0-1$ for any $\Delta$-pair $(i,j)$, and $j\geqslant j_0$ for any $D$-pair $(i,j)$.
$j\leqslant j_0-1$ for any $\Delta$-pair $(i,j)$, and $j\geqslant j_0$ for any $D$-pair $(i,j)$.
Another restriction for a $D$-pair $(i,j)$ is that either $i<s$ or $j>s+k-1$ (or both)
for a $D$-pair $(i,j)$ is that either $i<s$ or $j>s+k-1$ (or both).
Analogously, for $\Delta$-pairs we have $j<t$ or $i>t+k-1$. And
for $\Delta$-pairs we have $j<t$ or $i>t+k-1$.
And having all these restrictions (now forget about the initial graph), I claim that the total number of $D$-pairs and $\Delta$-pairs is at most $2k(n-k)$.
The proof is bit boring. Fix $i_0$ and $j_0$ and look for the value of $s$ for which the number of $D$-pairs satisfying our restrictions is maximal possible. It is not hard to see that it is maximized when $s=1$ or $s=n-k+1$ (if $i_0\leqslant n-k+1$ then putting $s=n-k+1$ we get no extra restrictions from "$i<s$ or $j>s+k-1$"; analogously, if $j_0\geqslant k+1$ we get no extra restriction for $s=1$. Finally, if $i_0\geqslant n-k+2$ and $j_0\leqslant k$, the extra restriction remove $(i_0-s)(s+k-j_0)$ pairs, which is a concave function maximizedin $s$, thus it is minimized on the interval $s\in [1,n-k+1]$ in one of the endpoints). Hence we may assume $s=1$ or $s=n-k+1$, analogously $t=1$ or $t=n-k+1$. There are two essentially different cases now: