/*
  Standalone stylesheet for the NEN Network page.
  Tokens and component patterns are carried over from the main
  ETS/NEN project (public/css/app.css) so this page matches its
  design system exactly, without depending on that project's files.
*/

:root {
    --primary: #c41e3a;
    --primary-dark: #9a1730;
    --primary-pill-bg: #fdd6d5;
    --dark: #111318;
    --muted: #5c6370;
    --light: #f4f6f8;
    --line: #e6e8ec;
    --white: #ffffff;
    --font: "Inter", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius-pill: 999px;
    --shadow: 0 12px 40px rgba(17, 19, 24, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font);
    color: var(--dark);
    background-color: var(--light);
    background-image: radial-gradient(rgba(17, 19, 24, 0.06) 1.4px, transparent 1.4px);
    background-size: 18px 18px;
    line-height: 1.65;
}

/* Decorative globe accent, same asset used in the main project's Find Us section */
body::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -80px;
    right: -140px;
    width: 620px;
    height: 620px;
    background: url("../images/dotted-globe.png") no-repeat center / contain;
    opacity: 0.45;
    pointer-events: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(1240px, calc(100% - 32px));
    margin-inline: auto;
}

/* Header / logo */
.page-header {
    padding: 48px 0 0;
}

.page-header__bar {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 124px;
}

.page-header__bar::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 50%;
    width: 228px;
    height: 124px;
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 28px;
    background: rgba(232, 235, 238, 0.72);
    box-shadow: 0 14px 30px rgba(17, 19, 24, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.78);
    transform: translateX(-50%);
    pointer-events: none;
}

.page-header__actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.visit-site {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.visit-site:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.visit-site span {
    font-size: 16px;
    line-height: 1;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}

.language-switcher a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.language-switcher a:hover,
.language-switcher a.is-active {
    color: var(--primary);
}

.language-flag {
    display: inline-block;
    width: 18px;
    height: 12px;
    overflow: hidden;
    border: 1px solid rgba(17, 19, 24, 0.12);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(17, 19, 24, 0.08);
}

.language-flag--ar {
    background: linear-gradient(to bottom, #ce1126 0 33%, #ffffff 33% 66%, #000000 66%);
}

.language-flag--en {
    background: linear-gradient(to bottom, #b22234 0 14%, #ffffff 14% 28%, #b22234 28% 42%, #ffffff 42% 56%, #b22234 56% 70%, #ffffff 70% 84%, #b22234 84%);
}

.language-flag--en::before {
    content: "";
    display: block;
    width: 45%;
    height: 55%;
    background: #3c3b6e;
}

.language-flag--ru {
    background: linear-gradient(to bottom, #ffffff 0 33%, #0039a6 33% 66%, #d52b1e 66%);
}

.page-header__logo {
    position: relative;
    z-index: 1;
    width: 180px;
    height: auto;
    margin: 4px 0 32px;
}

html[dir="rtl"] .page-header__actions {
    right: auto;
    left: 0;
}

/* Kicker + heading + lead — same pattern as brand-kicker/brand-title */
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 16px;
    border-radius: var(--radius-pill);
    background: var(--primary-pill-bg);
    color: var(--primary);
    font-family: "Poppins", var(--font);
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0.04em;
}

.section-head h1 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.3;
    font-weight: 700;
    font-family: "Roboto", "Inter", "Cairo", system-ui, sans-serif;
    letter-spacing: -0.01em;
    color: var(--dark);
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

/* Network section wrapper */
.network-section {
    padding: 0 0 90px;
}

/* Tabs — pill bar, same treatment as .partner-tabs elsewhere in the project */
.network-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: safe center;
    gap: 4px;
    margin: 0 auto 40px;
    padding: 8px;
    width: 100%;
    max-width: max-content;
    border-radius: var(--radius-pill);
    background: var(--light);
    overflow-x: auto;
    scrollbar-width: none;
}

.network-tabs::-webkit-scrollbar {
    display: none;
}

.network-tabs__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 44px;
    margin: 0;
    padding: 10px 20px;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s ease;
}

.network-tabs__btn:hover {
    color: var(--dark);
}

.network-tabs__btn.is-active {
    background: var(--white);
    color: var(--dark);
    box-shadow: 0 2px 10px rgba(17, 19, 24, 0.1);
}

/* Slider shell + nav arrows — same as .nen-ev-arrow used across the project */
.network-slider {
    position: relative;
    padding: 0 48px;
}

.network-swiper {
    overflow: hidden;
    padding-bottom: 42px;
}

.network-swiper .swiper-wrapper {
    align-items: stretch;
}

.network-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.network-swiper .swiper-pagination-bullet-active {
    background: var(--primary);
}

.network-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--dark);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.network-arrow:hover {
    background: #f5f5f5;
    border-color: #ccc;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.network-arrow svg {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}

.network-arrow--prev { left: 0; }
.network-arrow--next { right: 0; }

/* Logo card — same as .clients-home__card */
.network-card {
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 18px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(17, 19, 24, 0.04);
}

.network-card img {
    align-self: center;
    flex: 0 0 86px;
    max-width: 100%;
    max-height: 86px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.network-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 18px;
    text-align: left;
}

html[dir="rtl"] .network-card__body {
    text-align: right;
}

.network-card__title {
    margin: 0 0 7px;
    color: var(--dark);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.network-card__description {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.network-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    min-height: 44px;
    margin-top: auto;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(196, 30, 58, 0.22);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.network-card__link:hover {
    background: var(--primary-dark);
    color: var(--white);
    box-shadow: 0 12px 26px rgba(154, 23, 48, 0.26);
    transform: translateY(-1px);
}

.network-card__link:focus-visible {
    outline: 3px solid rgba(196, 30, 58, 0.25);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .page-header {
        padding-top: 28px;
    }

    .page-header__bar {
        min-height: 132px;
    }

    .page-header__actions {
        top: 84px;
        right: 50%;
        transform: translateX(50%);
    }

    .network-card {
        min-height: 280px;
    }
}

@media (min-width: 768px) and (max-width: 900px) {
    .page-header__bar {
        min-height: 178px;
    }

    .page-header__actions,
    html[dir="rtl"] .page-header__actions {
        top: 142px;
        right: 50%;
        left: auto;
        transform: translateX(50%);
    }
}

@media (max-width: 767px) {
    .network-slider {
        padding: 0 40px;
    }

    .network-tabs__btn {
        padding: 10px 16px;
    }

    body::before {
        width: 380px;
        height: 380px;
        top: -40px;
        right: -110px;
        opacity: 0.35;
    }
}

@media (max-width: 575px) {
    .network-slider {
        padding: 0 8px;
    }

    .network-arrow {
        display: none;
    }
}
