/* Isolated from Materialize navigation and module styles. */
.arm-services { position: relative; z-index: 2; font-family: var(--font-ui); line-height: 1; padding: 10px 12px; }
.arm-services .arm-services__toggle,
.arm-services .arm-services__close { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; box-shadow: none; }
.arm-services .arm-services__toggle { width: 44px; height: 44px; padding: 0; border-radius: 12px; background: transparent; color: #fff; transition: background-color .15s ease; }
.arm-services .arm-services__toggle:hover { background: rgba(255,255,255,.12); }
.arm-services .arm-services__toggle[aria-expanded="true"] { background: rgba(255,255,255,.18); }
.arm-services .arm-services__toggle .material-icons { font-size: 24px; line-height: 1; }

.arm-services .arm-services__panel { position: fixed; right: 16px; top: 72px; width: 416px; max-width: calc(100vw - 24px); max-height: calc(100vh - 88px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; color: #0f172a; box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 16px 40px -12px rgba(15,23,42,.22); line-height: 1.4; text-align: left; box-sizing: border-box; transform-origin: top right; animation: arm-services-in .14s ease-out; }
.arm-services .arm-services__panel[hidden] { display: none; }
@keyframes arm-services-in { from { opacity: 0; transform: translateY(-4px) scale(.985); } to { opacity: 1; transform: none; } }

.arm-services .arm-services__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 16px 14px 20px; border-bottom: 1px solid #f1f5f9; }
.arm-services h2 { margin: 0; font-family: var(--font-heading); font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -.005em; color: #0f172a; }
.arm-services .arm-services__hint { margin: 2px 0 0; color: #64748b; font-size: 12px; line-height: 1.4; }
.arm-services .arm-services__close { flex-shrink: 0; width: 32px; height: 32px; margin: -4px -4px 0 0; padding: 0; border-radius: 8px; background: transparent; color: #64748b; transition: background-color .15s ease, color .15s ease; }
.arm-services .arm-services__close:hover { background: #f1f5f9; color: #0f172a; }
.arm-services .arm-services__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.arm-services .arm-services__body { padding: 4px 12px 12px; }
.arm-services h3 { margin: 14px 8px 6px; color: #64748b; font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; }
.arm-services ul.arm-services__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; margin: 0; padding: 0; list-style: none; }
.arm-services .arm-services__list li { float: none; margin: 0; padding: 0; list-style: none; }

.arm-services a { color: #0f172a; text-decoration: none; font-size: 13px; line-height: 1.35; }
.arm-services .arm-services__list a { display: flex; align-items: center; gap: 10px; height: 100%; min-height: 48px; padding: 6px 8px; border-radius: 10px; box-sizing: border-box; transition: background-color .15s ease; }
.arm-services .arm-services__list a:hover { background: #f8fafc; }
.arm-services .arm-services__list a:hover .arm-services__mark { border-color: #cbd5e1; }
.arm-services .arm-services__list a:hover .arm-services__name { color: #0a3e65; }
.arm-services a:focus-visible,
.arm-services button:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }

.arm-services .arm-services__mark { display: flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; color: #0a3e65; overflow: hidden; box-sizing: border-box; transition: border-color .15s ease; }
.arm-services .arm-services__mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.arm-services .arm-services__mark img { display: block; width: 24px; height: 24px; object-fit: contain; }
/* Wide wordmarks: show only the emblem at their left edge. */
.arm-services .arm-services__mark--epvo { background: #0a3e65; border-color: #0a3e65; }
.arm-services .arm-services__mark--epvo img,
.arm-services .arm-services__mark--antiplagiat img { object-fit: cover; object-position: left center; }
.arm-services .arm-services__mark--antiplagiat img { width: 20px; }
.arm-services .arm-services__mark--bleed img { width: 100%; height: 100%; object-fit: cover; }

.arm-services .arm-services__text { display: flex; flex-direction: column; min-width: 0; }
.arm-services .arm-services__name { font-weight: 500; overflow-wrap: break-word; transition: color .15s ease; }
.arm-services .arm-services__note { overflow: hidden; color: #64748b; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }

.arm-services .arm-services__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 20px; border-top: 1px solid #f1f5f9; color: #64748b; font-size: 12px; }
.arm-services .arm-services__socials { display: flex; gap: 2px; }
.arm-services .arm-services__socials a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border-radius: 8px; color: #64748b; transition: background-color .15s ease, color .15s ease; }
.arm-services .arm-services__socials a:hover { background: #f1f5f9; color: #0a3e65; }
.arm-services .arm-services__socials svg { width: 18px; height: 18px; fill: currentColor; }
.arm-services .arm-services__socials svg.is-stroke { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
    .arm-services .arm-services__panel { animation: none; }
}
@media (max-width: 992px) {
    .header.navbar-fixed .arm-header-actions { margin-right: 0; }
}
@media (max-width: 600px) {
    .header .cabinet-title { max-width: calc(100% - 140px); padding-left: 4px; margin-left: 8px; font-size: 13px; white-space: normal; }
    .arm-services { padding: 10px 4px; }
    .arm-services .arm-services__panel { right: 12px; }
    .arm-services .arm-services__body { padding: 4px 8px 8px; }
    .arm-services .arm-services__list a { gap: 8px; padding: 6px; }
    .arm-services .arm-services__mark { width: 30px; height: 30px; border-radius: 8px; }
    .arm-services .arm-services__mark img { width: 22px; height: 22px; }
    .arm-services .arm-services__mark--antiplagiat img { width: 18px; }
    .arm-services .arm-services__note { white-space: normal; }
    .arm-services .arm-services__foot { padding-left: 16px; }
}
@media (max-width: 340px) {
    .arm-services ul.arm-services__list { grid-template-columns: minmax(0, 1fr); }
}
@media print { .arm-services { display: none; } }
