@font-face {
    font-family: 'PT Root UI';
    src: url('fonts/PT-Root-UI_Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PT Root UI';
    src: url('fonts/PT-Root-UI_Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PT Root UI';
    src: url('fonts/PT-Root-UI_Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PT Root UI';
    src: url('fonts/PT-Root-UI_Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-main: #060B14;
    --bg-sec: #0A111F;
    --bg-card: #111A2C;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border: #1E293B;
    --accent: #3B82F6;
    --accent-hover: #60A5FA;
    --grad-logo: linear-gradient(90deg, #8a2be2, #0088ff, #00ff00);
    
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.5);
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    --bg-main: #FFFFFF;
    --bg-sec: #F4F6F9;
    --bg-card: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #475569;
    --border: #E2E8F0;
    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PT Root UI', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-main);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-main { background-color: var(--bg-main); }
.bg-sec { background-color: var(--bg-sec); }
.bg-gradient {
    background: linear-gradient(135deg, #091324 0%, #03060b 100%);
}

[data-theme="light"] .bg-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.text-center { text-align: center; }
.text-white { color: #ffffff !important; }

.btn-primary, .btn-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #000000;
}

[data-theme="light"] .btn-secondary {
    border-color: #FFF;
    color: #FFF;
}

[data-theme="light"] .btn-secondary:hover {
    background-color: var(--text-main);
    color: var(--bg-main);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(6, 11, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition-base);
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.85);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.header:not(.scrolled) {
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-svg {
    height: 35px;
    display: block;
}

.nav-list {
    display: flex;
    gap: 35px;
}

.nav-list a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-fast);
}

.nav-list a:hover { color: var(--accent); }
.nav-list a:hover::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.theme-toggle:hover {
    background: rgba(128, 128, 128, 0.1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.sun-icon { display: block; }
.moon-icon { display: none; }[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: #030712;
    overflow: hidden;
}

[data-theme="light"] .hero {
    background-color: #1e293b;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.2) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(138, 43, 226, 0.15) 0%, transparent 40%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: 4rem;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-title span {
    color: transparent;
    background: var(--grad-logo);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.about-bento {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
}

.bento-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    background: var(--bg-card);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.bento-main .lead-text {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.bento-main .desc-text {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.bento-stat {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.bento-stat-1 { grid-column: 2 / 3; grid-row: 1 / 2; }
.bento-stat-2 { grid-column: 3 / 4; grid-row: 1 / 2; }

.stat-content { display: flex; flex-direction: column; }
.stat-value {
    font-size: 3rem;
    font-weight: 700;
    background: var(--grad-logo);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 10px;
}
.stat-name {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 500;
}

.bento-feature {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.bento-feature h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.bento-feature p {
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

.feature-glow {
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 150px;
    height: 150px;
    background: rgba(37, 99, 235, 0.2);
    filter: blur(40px);
    border-radius: 50%;
    z-index: 1;
}

.services-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.svc-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
    transition: var(--transition-base);
    overflow: hidden;
}

.svc-glow-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-logo);
    opacity: 0;
    transform: translateY(-4px);
    transition: var(--transition-base);
}

.svc-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.svc-card:hover .svc-glow-bar {
    opacity: 1;
    transform: translateY(0);
}

.svc-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 24px;
}

.svc-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.svc-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.gmap-wrapper {
    width: 100%;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}
#leaflet-map {
    width: 100%;
    height: 100%;
}






.network-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.network-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 12px;
}

.network-card h3 {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.network-card ul li {
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.network-card ul li strong { color: var(--text-main); }
.network-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.partners-subtitle {
    margin-bottom: 50px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.partner-card {
    background: var(--bg-card);
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 180px;
    height: 80px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.partner-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.partner-card span {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.partner-card:hover span {
    color: var(--text-main);
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.contact-desc {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #3b82f6;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-link, .contact-text {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
}

.contact-link:hover { color: #60a5fa; }
.contact-text { font-size: 1rem; line-height: 1.5; color: #cbd5e1; }

.contact-action-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.action-box-inner {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.action-box-inner h3 {
    color: #0f172a;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.action-box-inner p {
    color: #475569;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.footer {
    background: #020617;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand p { color: #64748b; font-size: 0.85rem; margin-top: 5px; }
.copyright { color: #475569; font-size: 0.9rem; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .about-bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-main { grid-column: 1; grid-row: 1;  padding: 20px;}
    .bento-stat-1 { grid-column: 1; grid-row: 2; }
    .bento-stat-2 { grid-column: 1; grid-row: 3; }
    .bento-feature { grid-column: 1; grid-row: 4; }
    
    .contacts-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 3rem; }
    .action-box-inner { padding: 30px 20px; }
    .svc-card
    {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }
    .section-title { font-size: 1.7rem; }
    .desktop-only { display: none; }
    .menu-toggle { display: flex; }

    .logo-svg
    {
        height: 25px;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-main);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
        z-index: -1;
    }
    
    .nav.active { right: 0; }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .nav-list a {
        font-size: 1.5rem;
        color: var(--text-main);
    }

    .services-showcase{grid-template-columns: 1fr;}
    
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-large { width: 100%; text-align: center; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}

.leaflet-control-attribution.leaflet-control
{
    display: none;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.route-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.route-item:hover {
    border-color: #0088ff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.route-item .city {
    font-weight: 500;
    color: var(--text-main);
    font-size: 1.05rem;
}

.route-item .arrow {
    color: #0088ff;
    margin: 0 15px;
    font-weight: 700;
}

path.animated-route {
    transition: stroke-width 0.3s ease, stroke-opacity 0.3s ease;
}


.route-item .latency-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.4s ease;
    white-space: nowrap;
}

.route-item:hover .latency-badge {
    background: var(--grad-logo);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 136, 255, 0.4);
}

.leaflet-tooltip.custom-map-tooltip {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 8px;
    padding: 6px 12px;
    font-family: 'PT Root UI', sans-serif;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.leaflet-tooltip-top.custom-map-tooltip::before,
.leaflet-tooltip-bottom.custom-map-tooltip::before,
.leaflet-tooltip-left.custom-map-tooltip::before,
.leaflet-tooltip-right.custom-map-tooltip::before {
    display: none;
}