.plrm {
    --plrm-brand-blue: #0097e8;
    --plrm-brand-deep: #1557d8;
    --plrm-brand-purple: #7b2cff;
    --plrm-bg: #ffffff;
    --plrm-text: #121826;
    --plrm-muted: #64748b;
    --plrm-border: rgba(18, 24, 38, 0.10);
    --plrm-line: rgba(18, 24, 38, 0.08);
    --plrm-hover: rgba(0, 151, 232, 0.08);
    --plrm-active: rgba(0, 151, 232, 0.14);
    --plrm-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
    position: relative;
    width: 100%;
    max-width: 100%;
    font: inherit;
    color: var(--plrm-text);
}

.plrm,
.plrm * { box-sizing: border-box; }
.plrm a { color: inherit; text-decoration: none; }
.plrm ul { list-style: none; margin: 0; padding: 0; }
.plrm button { font: inherit; }

.plrm-desktop,
.plrm-mobile { width: 100%; }

.plrm-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.plrm-mobile { display: none; }

@media (max-width: 959px) {
    .plrm-desktop { display: none !important; }
    .plrm-mobile { display: block !important; }
}

.plrm.plrm-is-mobile .plrm-desktop { display: none !important; }
.plrm.plrm-is-mobile .plrm-mobile { display: block !important; }
.plrm.plrm-is-desktop .plrm-mobile { display: none !important; }
.plrm.plrm-is-desktop .plrm-desktop {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.plrm-nav { display: block; min-width: 0; }
.plrm-list { list-style: none; margin: 0; padding: 0; }

.plrm-list--desktop {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.plrm-list--desktop > .plrm-item { position: relative; }
.plrm-item-row { display: flex; align-items: center; }

.plrm-link {
    display: block;
    padding: 11px 15px;
    line-height: 1.35;
    color: var(--plrm-text);
    border-radius: 12px;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.plrm-link:hover {
    color: var(--plrm-brand-deep);
    background: var(--plrm-hover);
}

.plrm-item--active > .plrm-item-row > .plrm-link {
    color: var(--plrm-brand-deep);
    background: linear-gradient(135deg, rgba(0, 151, 232, 0.12), rgba(123, 44, 255, 0.10));
    box-shadow: inset 0 0 0 1px rgba(0, 151, 232, 0.09);
}

.plrm-subtoggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: -8px;
    border: 0;
    background: transparent;
    color: var(--plrm-text);
    cursor: pointer;
}

.plrm-subtoggle span {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.plrm-list--desktop .plrm-submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--plrm-border);
    border-radius: 18px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    z-index: 50;
}

.plrm-list--desktop .plrm-item:hover > .plrm-submenu,
.plrm-list--desktop .plrm-item:focus-within > .plrm-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.plrm-list--desktop .plrm-submenu .plrm-list { display: block; }
.plrm-list--desktop .plrm-submenu .plrm-link { white-space: normal; padding: 10px 12px; }

.plrm-languages {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.plrm-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 36px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(18, 24, 38, 0.12);
    border-radius: 999px;
    color: var(--plrm-text);
    background: rgba(255, 255, 255, 0.90);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .03em;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.plrm-lang:hover {
    color: var(--plrm-brand-deep);
    border-color: rgba(0, 151, 232, 0.34);
    background: rgba(0, 151, 232, 0.07);
    transform: translateY(-1px);
}

.plrm-lang--active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--plrm-brand-blue), var(--plrm-brand-purple));
    box-shadow: 0 12px 26px rgba(21, 87, 216, 0.25);
}

.plrm-lang-flag {
    display: inline-block;
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.plrm-lang-title,
.plrm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.plrm-mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 15px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--plrm-brand-blue), var(--plrm-brand-purple));
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(21, 87, 216, 0.28);
    transition: transform .18s ease, box-shadow .18s ease;
}

.plrm-mobile-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(21, 87, 216, 0.34);
}

.plrm-burger { display: inline-flex; flex-direction: column; gap: 4px; }
.plrm-burger span { width: 22px; height: 2px; background: currentColor; border-radius: 999px; }

.plrm-panel[hidden] { display: none !important; }
.plrm-panel { position: fixed; inset: 0; z-index: 999999; }
.plrm-panel-backdrop { position: absolute; inset: 0; background: rgba(10, 18, 32, 0.56); backdrop-filter: blur(2px); }

.plrm-panel-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: min(90vw, 420px);
    height: 100%;
    padding: 28px 24px 30px;
    overflow-y: auto;
    background:
        radial-gradient(circle at 18% 0%, rgba(0, 151, 232, 0.14), transparent 34%),
        radial-gradient(circle at 100% 10%, rgba(123, 44, 255, 0.12), transparent 34%),
        #ffffff;
    color: var(--plrm-text);
    box-shadow: var(--plrm-shadow);
}

.plrm-panel-inner::before {
    content: 'PLAS TECH';
    display: block;
    margin: 6px 58px 20px 0;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .12em;
    color: var(--plrm-brand-deep);
}

.plrm-panel-inner::after {
    content: 'INNOVATION';
    position: absolute;
    top: 47px;
    left: 24px;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .18em;
    color: var(--plrm-brand-blue);
}

.plrm-panel-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(18, 24, 38, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--plrm-text);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.plrm-panel-inner > .plrm-languages {
    margin: 24px 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--plrm-line);
}

.plrm-list--mobile {
    display: block;
    width: 100%;
    margin-top: 8px;
}

.plrm-list--mobile .plrm-item {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    border: 0;
}

.plrm-list--mobile .plrm-item-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid rgba(18, 24, 38, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.plrm-list--mobile .plrm-item--active > .plrm-item-row {
    border-color: rgba(0, 151, 232, 0.28);
    background: linear-gradient(135deg, rgba(0, 151, 232, 0.13), rgba(123, 44, 255, 0.10));
}

.plrm-list--mobile .plrm-link {
    flex: 1 1 auto;
    width: auto;
    padding: 15px 16px;
    white-space: normal;
    border-radius: 0;
    background: transparent;
    font-weight: 650;
}

.plrm-list--mobile .plrm-link:hover {
    background: transparent;
}

.plrm-list--mobile .plrm-subtoggle {
    flex: 0 0 48px;
    width: 48px;
    height: auto;
    margin: 0;
    color: var(--plrm-brand-deep);
    border-left: 1px solid rgba(18, 24, 38, 0.08);
}

.plrm-list--mobile .plrm-subtoggle[aria-expanded="true"] span {
    transform: rotate(225deg) translate(-2px, -2px);
}

.plrm-list--mobile .plrm-submenu {
    padding: 8px 0 0 18px;
}

.plrm-list--mobile .plrm-submenu[hidden] { display: none !important; }
.plrm-list--mobile .plrm-submenu .plrm-item-row {
    background: rgba(255, 255, 255, 0.58);
    box-shadow: none;
}
.plrm-list--mobile .plrm-submenu .plrm-link {
    padding: 13px 14px;
    font-size: 0.96em;
}

body.plrm-lock { overflow: hidden; }

.plrm-body-mobile {
    display: none;
    position: fixed;
    top: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    z-index: 1000000;
    pointer-events: none;
}

.plrm-body-mobile .plrm-mobile {
    display: block !important;
    width: auto;
    pointer-events: auto;
}

.plrm-body-mobile .plrm-mobile-toggle {
    min-width: 48px;
    min-height: 48px;
    padding: 12px 13px;
    background: linear-gradient(135deg, var(--plrm-brand-blue), var(--plrm-brand-purple));
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(21, 87, 216, 0.30);
}

.plrm-body-mobile .plrm-mobile-toggle-text { display: none; }
.plrm-body-mobile.plrm-is-mobile { display: block !important; }
.plrm-body-mobile.plrm-is-desktop { display: none !important; }

@media (max-width: 959px) {
    .plrm-body-mobile { display: block !important; }
}
