:root {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: #d6faff;
    background: #020708;
    color-scheme: dark;
    --panel: rgba(3, 10, 12, 0.96);
    --panel-deep: #020609;
    --cyan: #00d9ef;
    --cyan-soft: rgba(0, 217, 239, 0.22);
    --line: rgba(0, 217, 239, 0.58);
    --orange: #bd5b16;
    --orange-bright: #e87922;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: hidden;
    background-color: #020708;
    background-image:
        linear-gradient(rgba(0, 217, 239, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 239, 0.045) 1px, transparent 1px),
        linear-gradient(135deg, #020708 0%, #061316 100%);
    background-size: 24px 24px, 24px 24px, 100% 100%;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    width: 100%;
    background: linear-gradient(180deg, rgba(3, 10, 12, 0.98), rgba(2, 8, 10, 0.94));
    box-shadow: 0 0 0 1px rgba(0, 217, 239, 0.08), 0 0 24px rgba(0, 217, 239, 0.12);
    position: relative;
    padding-bottom: 10px;
}

.site-header::after {
    content: "";
    display: block;
    width: calc(100% - 18px);
    height: 3px;
    margin: 0 auto;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 217, 239, 0.1) 0%, rgba(0, 217, 239, 0.9) 10%, rgba(0, 217, 239, 1) 50%, rgba(0, 217, 239, 0.9) 90%, rgba(0, 217, 239, 0.1) 100%);
    box-shadow: 0 0 12px rgba(0, 217, 239, 0.7), 0 0 20px rgba(0, 217, 239, 0.35);
}

.topbar {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.brand img {
    max-height: 84px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(0, 217, 239, 0.28));
}

.nav-toggle {
    display: none;
    width: 54px;
    height: 44px;
    border: 1px solid rgba(0, 217, 239, 0.42);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(0, 217, 239, 0.12), rgba(0, 217, 239, 0.04));
    box-shadow: 0 0 14px rgba(0, 217, 239, 0.12), inset 0 0 12px rgba(255, 255, 255, 0.02);
    cursor: pointer;
    padding: 9px 10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nav-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(0, 217, 239, 0.18);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #d6faff, #7ae7ff);
    transition: transform 0.28s cubic-bezier(.2,.85,.25,1), opacity 0.2s ease, width 0.2s ease;
}

.nav-toggle.is-open {
    border-color: rgba(0, 217, 239, 0.8);
    box-shadow: 0 0 22px rgba(0, 217, 239, 0.18);
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.main-nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(0, 217, 239, 0.12);
    border: 1px solid rgba(0, 217, 239, 0.35);
    color: #d6faff;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    font-size: 0.8rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 0 8px rgba(0, 217, 239, 0.12);
    flex: 0 1 auto;
    text-align: center;
}

.nav-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background: rgba(0, 217, 239, 0.18);
    color: #fff;
    border-color: rgba(0, 217, 239, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(0, 217, 239, 0.18);
}

.site-footer {
    width: 100%;
    margin-top: auto;
    padding: 0 0 18px;
}

.footer-bar {
    width: calc(100% - 18px);
    margin: 0 auto;
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(2, 8, 10, 0.96), rgba(4, 14, 18, 0.98));
    border: 1px solid rgba(0, 217, 239, 0.4);
    border-radius: 999px;
    text-align: center;
    box-shadow: 0 0 0 1px rgba(0, 217, 239, 0.08), 0 0 18px rgba(0, 217, 239, 0.14);
    position: relative;
    overflow: hidden;
}

.footer-bar::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 217, 239, 0.1) 0%, rgba(0, 217, 239, 0.9) 15%, rgba(0, 217, 239, 1) 50%, rgba(0, 217, 239, 0.9) 85%, rgba(0, 217, 239, 0.1) 100%);
    box-shadow: 0 0 12px rgba(0, 217, 239, 0.6);
}

.footer-bar p {
    margin: 0;
    color: #d6faff;
    font-weight: 700;
    letter-spacing: 0.04em;
    position: relative;
    z-index: 1;
}

main {
    position: relative;
    width: min(100%, 600px);
    padding: clamp(28px, 6vw, 44px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: 0 0 0 1px rgba(0, 217, 239, 0.08), 0 0 28px rgba(0, 217, 239, 0.12), inset 0 0 34px rgba(0, 0, 0, 0.72);
    margin: 28px auto 35px;
}

.page-content {
    width: min(100%, 1100px);
    padding: clamp(28px, 6vw, 44px);
    margin: 28px auto 35px;
}

.news-box {
    width: 100%;
    padding: clamp(24px, 4vw, 38px);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(0, 217, 239, 0.08), 0 0 28px rgba(0, 217, 239, 0.12), inset 0 0 34px rgba(0, 0, 0, 0.72);
}

.news-list {
    display: grid;
    gap: 18px;
}

.news-item {
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(0, 217, 239, 0.18);
    border-radius: 10px;
}

.news-date {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--orange-bright);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.news-item h2 {
    margin: 0 0 10px;
    color: var(--cyan);
    font-size: 1.3rem;
}

.news-item p {
    margin: 0;
    line-height: 1.6;
    color: #d6faff;
}

.stats-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 18px;
    background: rgba(2, 10, 12, 0.9);
    border: 1px solid rgba(0, 217, 239, 0.22);
    border-radius: 12px;
    box-shadow: inset 0 0 18px rgba(0, 217, 239, 0.04);
    text-align: center;
}

.stat-number {
    color: var(--cyan);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
}

.stat-label {
    color: #b8dfe5;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.services-section {
    margin-top: 26px;
    background: rgba(2, 10, 12, 0.9);
    border: 1px solid rgba(0, 217, 239, 0.22);
    border-radius: 12px;
    padding: clamp(20px, 3vw, 32px);
}

.section-heading {
    margin-bottom: 18px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--orange-bright);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    color: var(--cyan);
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    padding: 22px 18px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(0, 217, 239, 0.16);
    border-radius: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 217, 239, 0.5);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(0, 217, 239, 0.12);
    border: 1px solid rgba(0, 217, 239, 0.2);
    font-size: 1.5rem;
}

.service-card h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.15rem;
}

.service-card p {
    margin: 0;
    line-height: 1.6;
    color: #cfeaf0;
}

main::before, main::after {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--cyan);
    content: "";
    filter: drop-shadow(0 0 4px var(--cyan));
}
main::before { top: -1px; left: -1px; border-top: 3px solid; border-left: 3px solid; border-top-left-radius: 12px; }
main::after { right: -1px; bottom: -1px; border-right: 3px solid; border-bottom: 3px solid; border-bottom-right-radius: 12px; }

h1 {
    position: relative;
    width: fit-content;
    margin: -38px 0 34px -38px;
    padding: 10px 42px 10px 22px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--panel-deep);
    color: var(--cyan);
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    letter-spacing: 0.06em;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 217, 239, 0.42);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
    border-top-left-radius: 12px;
}

h1::before {
    margin-right: 10px;
    color: var(--orange-bright);
    content: "+";
    font-size: 0.8em;
    vertical-align: 0.05em;
}

ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

li {
    padding: 16px 20px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 217, 239, 0.2);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

li:hover { 
    background: rgba(0, 217, 239, 0.06); 
    border-color: var(--cyan); 
}

.rssi { 
    color: var(--orange-bright); 
    font-weight: bold; 
    font-family: monospace; 
}

form { 
    display: grid; 
    gap: 20px; 
}

.field { 
    display: grid; 
    gap: 8px; 
}

label { 
    font-size: 0.85rem; 
    font-weight: 700; 
    letter-spacing: 0.04em; 
    text-transform: uppercase; 
    color: #7eabb1; 
}

input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 217, 239, 0.35);
    border-radius: 8px;
    font: inherit;
    font-size: 1rem;
    color: #d6faff;
    background: rgba(0, 0, 0, 0.4);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--cyan);
    background: rgba(0, 217, 239, 0.06);
    box-shadow: 0 0 0 3px var(--cyan-soft), 0 0 14px rgba(0, 217, 239, 0.16);
}

.password-row { 
    display: flex; 
    gap: 8px; 
}

.password-row input { 
    min-width: 0; 
}

.toggle-password {
    min-width: 76px;
    min-height: 52px;
    border: 1px solid rgba(0, 217, 239, 0.35);
    border-radius: 8px;
    padding: 0 14px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cyan);
    background: rgba(0, 217, 239, 0.04);
    cursor: pointer;
}

.toggle-password:hover, .toggle-password:focus-visible {
    border-color: var(--orange-bright);
    color: var(--orange-bright);
    background: rgba(189, 91, 22, 0.12);
}

a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
}

a:hover, a:focus-visible {
    color: var(--orange-bright);
    text-shadow: 0 0 10px rgba(0, 217, 239, 0.7), 0 0 18px rgba(232, 121, 34, 0.35);
    transform: translateY(-1px);
}

button[type="submit"] {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    padding: 15px 20px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    color: #160b04;
    background: var(--orange);
    box-shadow: 0 0 16px rgba(189, 91, 22, 0.24);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

button[type="submit"]:hover, button[type="submit"]:focus-visible {
    background: var(--orange-bright);
    box-shadow: 0 0 22px rgba(232, 121, 34, 0.42);
    transform: translateY(-2px);
}

.error { 
    margin: -8px 0 0; 
    font-size: 0.85rem; 
    color: #ff8f6b; 
}

@media (max-width: 768px) {
    .topbar {
        padding: 18px 16px 16px;
        position: relative;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(-14px);
        padding: 0;
        border: 0;
        background: transparent;
        transition: max-height 0.4s cubic-bezier(.2,.8,.2,1), opacity 0.28s ease, transform 0.28s ease, padding 0.28s ease;
        flex-direction: column;
        gap: 10px;
    }

    .main-nav.is-open {
        display: flex;
        max-height: 520px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        padding: 12px;
        border: 1px solid rgba(0, 217, 239, 0.22);
        border-radius: 18px;
        background: rgba(6, 16, 18, 0.72);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 0 24px rgba(0, 217, 239, 0.12), inset 0 0 18px rgba(0, 217, 239, 0.04);
        animation: menuSlide 0.35s ease;
    }

    @keyframes menuSlide {
        from {
            opacity: 0;
            transform: translateY(-12px) scaleY(0.96);
        }
        to {
            opacity: 1;
            transform: translateY(0) scaleY(1);
        }
    }

    .main-nav a {
        width: 100%;
        flex: 1 1 100%;
        min-height: 44px;
        font-size: 0.82rem;
        padding: 10px 14px;
        border-radius: 12px;
        background: rgba(0, 217, 239, 0.08);
        border: 1px solid rgba(0, 217, 239, 0.24);
        box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.015);
    }

    .stats-panel,
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .main-nav.is-open {
        width: calc(100% - 8px);
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .topbar { padding: 14px 12px 12px; }
    .main-nav a {
        flex-basis: 100%;
        width: 100%;
    }
    main { margin: 20px auto 35px; padding: 24px 16px; }
    .news-box { padding: 20px 16px; }
    .stats-panel,
    .service-grid {
        grid-template-columns: 1fr;
    }
    h1 {
        margin: -24px 0 20px -16px; 
        padding: 8px 24px 8px 12px;
    }
    .password-row { align-items: stretch; flex-direction: column; }
    .toggle-password { width: 100%; }
}
