:root {
--bg: #0d0e0fff;
    --panel: #111214;
    --text: #e9ecef;
    --muted: #b8bfc6;
    /* Фіолетовий неон (для меню, іконок, плиток) */
    --accent: #a020f0;
    /* М’який блакитний (для Telegram і телефону) */
    --highlight-blue: #4EA8FF;
    --wrap: 1280px;
    --side-pad: 24px;
    --topbar-h: 40px;
    --header-h: 68px;
    --gap-logo-nav: 48px;
    --radius: 14px;
    --hover-shadow: 0 0 12px rgba(160,32,240,.8), 0 0 28px rgba(160,32,240,.4);
    /* ВИСОТИ СЛАЙДЕРІВ */
    --hero-h-main: 420px;
    --hero-h-side: 420px;
    --hero-h-mobile: 260px;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Nunito',system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    line-height: 1.45;
}

.container {
    width: min(100% - 2*var(--side-pad), var(--wrap));
    margin-inline: auto;
    padding-inline: var(--side-pad);
}

/* =========================
   TOP BAR
   ========================= */
.top-bar {
    background: var(--panel);
    border-bottom: 1px solid #1b1d21;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    font-size: 14px;
}

.topbar-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 16px;
}

.tb-left {
    color: #cfd6dc;
    white-space: nowrap
}

.tb-center {
    display: flex;
    gap: 18px;
    justify-self: center;
    color: #e1e6ea;
    white-space: nowrap;
    text-align: center;
}

.tb-right {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-self: end;
    white-space: nowrap;
}

/* Telegram — капсула з м’якою блакитною підсвіткою */
.tg-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #0f1116;
    border: 1px solid #1f2330;
    color: #e8e5ff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .2px;
    transition: background .2s ease, border-color .2s ease, box-shadow .25s ease, color .2s ease, transform .15s ease;
}

    .tg-link svg {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
        filter: drop-shadow(0 0 0 rgba(0,0,0,0));
    }

    .tg-link:hover,
    .tg-link:focus-visible {
        background: color-mix(in srgb, var(--highlight-blue) 14%, transparent);
        border-color: color-mix(in srgb, var(--highlight-blue) 55%, transparent);
        color: #fff;
        box-shadow: 0 0 8px color-mix(in srgb, var(--highlight-blue) 50%, transparent), 0 0 14px color-mix(in srgb, var(--highlight-blue) 25%, transparent);
        transform: translateY(-1px);
    }

        .tg-link:hover svg,
        .tg-link:focus-visible svg {
            filter: drop-shadow(0 0 4px color-mix(in srgb, var(--highlight-blue) 70%, transparent));
        }

    .tg-link:focus-visible {
        outline: 2px solid color-mix(in srgb, var(--highlight-blue) 80%, transparent);
        outline-offset: 2px;
    }

/* Телефон — така ж капсула, шрифт трохи більший */
.phone {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #0f1116;
    border: 1px solid #1f2330;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .2px;
    font-size: 15px;
    transition: background .2s ease, border-color .2s ease, box-shadow .25s ease, color .2s ease, transform .15s ease;
}

    .phone:hover,
    .phone:focus-visible {
        background: color-mix(in srgb, var(--highlight-blue) 14%, transparent);
        border-color: color-mix(in srgb, var(--highlight-blue) 55%, transparent);
        color: #fff;
        box-shadow: 0 0 8px color-mix(in srgb, var(--highlight-blue) 50%, transparent), 0 0 14px color-mix(in srgb, var(--highlight-blue) 25%, transparent);
        transform: translateY(-1px);
    }
/* акуратний розділювач між кнопками */
.tg-link + .phone::before {
    content: "•";
    margin: 0 10px 0 6px;
    color: #3a3f4f;
}

/* =========================
   HEADER
   ========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--panel);
    border-bottom: 1px solid #1b1d21;
    height: var(--header-h);
    display: flex;
    align-items: center;
}

.header-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding-block: 12px;
}

.logo {
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    letter-spacing: 1.6px;
    font-size: 22px;
    user-select: none;
    position: relative;
    padding-right: 18px;
}

    .logo::after {
        content: "";
        position: absolute;
        right: -2px;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 24px;
        background: #1f2430;
        border-radius: 1px;
    }

#nav-toggle {
    display: none
}

.burger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: #0f1114;
    outline: 1px solid #20242b;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

    .burger span {
        display: block;
        width: 18px;
        height: 2px;
        background: #e8ebef;
        border-radius: 2px;
    }

.main-nav {
    margin-left: var(--gap-logo-nav)
}

    .main-nav ul {
        display: flex;
        gap: 28px;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
        white-space: nowrap;
    }

    .main-nav a {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        padding: 10px 12px;
        border-radius: var(--radius);
        transition: .18s ease;
    }

        .main-nav a:hover {
            background: #0f1114;
            box-shadow: var(--hover-shadow);
            color: var(--accent);
        }

/* Іконки PNG → білий */
.mi {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease, box-shadow 0.3s ease;
}

.main-nav a:hover .mi {
    filter: brightness(0) saturate(100%) invert(29%) sepia(99%) saturate(6678%) hue-rotate(269deg) brightness(94%) contrast(97%);
    box-shadow: 0 0 6px var(--accent), 0 0 12px rgba(160, 32, 240, 0.6);
}

.header-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-self: end
}

    .header-icons a {
        color: #e8ebef;
        text-decoration: none;
        font-size: 18px;
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        border-radius: var(--radius);
        background: #0f1114;
        outline: 1px solid #20242b;
        transition: .18s ease;
    }

        .header-icons a:hover {
            color: var(--accent);
            outline-color: #2a2f36;
            box-shadow: var(--hover-shadow);
        }

        .header-icons a img {
            width: 18px;
            height: 18px;
            object-fit: contain;
            filter: brightness(0) invert(1);
            transition: filter .3s ease, box-shadow .3s ease;
        }

        .header-icons a:hover img {
            filter: brightness(0) saturate(100%) invert(29%) sepia(99%) saturate(6678%) hue-rotate(269deg) brightness(94%) contrast(97%);
            box-shadow: 0 0 6px var(--accent), 0 0 12px rgba(160, 32, 240, .6);
        }

/* =========================
   HERO — плиткові слайдери
   ========================= */
.hero-sliders {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    margin-block: 18px 10px;
}

.tile {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #0b0e12;
    border: 1px solid #1a1f27;
    isolation: isolate;
    transform: translateZ(0);
    transition: transform .35s ease, box-shadow .35s ease, border-color .3s ease;
    will-change: transform;
}

    .tile:hover {
        transform: translateY(-3px);
        border-color: var(--accent);
        /* box-shadow: var(--hover-shadow);  ← прибрано glow з плиток */
    }

.tile__edge, .tile__shine {
    display: none
}

.slider {
    height: var(--hero-h-main);
}

    .slider.secondary {
        height: var(--hero-h-side);
    }

.slides, .slide {
    height: 100%;
}

.slides {
    display: flex;
    transition: transform .55s cubic-bezier(.22,.61,.36,1);
    position: relative;
    z-index: 2;
}

.slide {
    flex: 0 0 100%;
    position: relative;
    overflow: hidden;
}

    .slide img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(160,32,240,.7);
    background: rgba(15,17,20,.65);
    color: #e9eff6;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: .2s;
    backdrop-filter: blur(4px);
}

    .nav:hover {
        color: var(--accent);
        border-color: var(--accent);
        box-shadow: var(--hover-shadow);
    }

    .nav.prev {
        left: 10px
    }

    .nav.next {
        right: 10px
    }

.dots {
    position: absolute;
    z-index: 3;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

    .dots button {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: #263041;
        border: 0;
        cursor: pointer;
        transition: .2s;
    }

        .dots button[aria-current="true"] {
            background: var(--accent);
            box-shadow: 0 0 6px rgba(160,32,240,.8);
            transform: scale(1.08);
        }

.page-placeholder {
    min-height: 60vh;
    background: #000
}

/* =========================
   Адаптив
   ========================= */
@media (max-width:1200px) {
    :root {
        --gap-logo-nav: 32px
    }

    .main-nav ul {
        gap: 22px
    }
}

@media (max-width:1024px) {
    :root {
        --side-pad: 18px
    }

    .burger {
        display: flex
    }

    .main-nav {
        position: fixed;
        inset: calc(var(--topbar-h) + var(--header-h)) 0 auto 0;
        background: #0f1114;
        border-top: 1px solid #1b1d21;
        margin-left: 0;
        display: none;
        z-index: 60;
    }

        .main-nav ul {
            flex-direction: column;
            gap: 6px;
            padding: 12px;
            white-space: normal
        }

        .main-nav a {
            width: 100%;
            padding: 12px;
            border-radius: 10px
        }

    #nav-toggle:checked ~ .main-nav {
        display: block
    }

    .hero-sliders {
        grid-template-columns: 1fr;
    }

    .slider, .slider.secondary {
        height: var(--hero-h-mobile);
    }
}

@media (max-width:640px) {
    .tb-center {
        display: none
    }

    .phone {
        font-weight: 700;
        font-size: 15px
    }

    .nav {
        width: 34px;
        height: 34px
    }

        .nav.prev {
            left: 8px
        }

        .nav.next {
            right: 8px
        }
}
