
:root {
    --bg: #f8fafc; /* very light gray */
    --bg-gradient-top: #ffffff;
    --bg-gradient-bottom: #f1f5f9;
    --text: #0b1220; /* near-black */
    --muted: #4b5563; /* slate */
    --card: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);

    /* Neon accents */
    --cy: #1ee9e9; /* cyan/turquoise */
    --violet: #8a5bff; /* violet */
    --lime: #a6ff4d; /* lime green */

    --link: #5b6cff; /* link base */
    --radius: 16px;
    --container: 1200px;
    --header-h: 72px;
    --transition: .25s ease;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font: 16px/1.65 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
    color: var(--text);
    background: radial-gradient(1000px 600px at 10% -10%, rgba(30, 233, 233, .12), transparent 60%),
    radial-gradient(700px 500px at 110% 10%, rgba(138, 91, 255, .12), transparent 60%),
    linear-gradient(180deg, var(--bg-gradient-top), var(--bg-gradient-bottom));
    overflow-x: hidden;
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

/* ===== Header ===== */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .3px;
}

.logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.logo-badge::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 8px;
    background: url("picture/logo.png");
    filter: drop-shadow(0 0 8px rgba(30, 233, 233, .5)) drop-shadow(0 0 10px rgba(138, 91, 255, .35));
}

.brand {
    font-size: 18px
}

nav ul {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    position: relative;
    display: inline-block;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    border-radius: 10px;
}

nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 8px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--cy), var(--violet));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

nav a:hover::after {
    transform: scaleX(1);
}

.burger {
    display: none;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.burger span {
    width: 20px;
    height: 2px;
    background: var(--text);
    position: relative;
    display: block;
}

.burger span::before, .burger span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text);
}

.burger span::before {
    top: -6px
}

.burger span::after {
    top: 6px
}

/* Mobile menu panel */
.mobile-panel {
    position: fixed;
    inset: 0 0 auto 0;
    height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--border);
    transition: height .35s cubic-bezier(.2, .8, .2, 1);
    z-index: 9999;
}

.mobile-panel.open {
    height: 180px;
}

.mobile-panel ul {
    padding: 14px 16px 18px;
    margin: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.mobile-panel a {
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    border: 1px solid var(--border);
}

.mobile-panel a:hover {
    box-shadow: 0 0 0 3px rgba(30, 233, 233, .25), 0 0 12px rgba(138, 91, 255, .25) inset;
}

@media (max-width: 1000px) {
    nav {
        display: none;
    }

    .burger {
        display: inline-flex;
    }
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 48px 0 24px;
}

.hero-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 8px);
    box-shadow: var(--shadow);
    padding: clamp(20px, 4vw, 40px);
    overflow: hidden;
}

.hero-eyebrow {
    color: var(--muted);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 12px;
}

h1 {
    margin: 10px 0 8px;
    font-size: clamp(32px, 4.5vw, 52px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: .3px;
    background: linear-gradient(90deg, var(--text), var(--text)),
    linear-gradient(90deg, var(--cy), var(--violet));
    -webkit-background-clip: text, text;
    background-clip: text, text;
    color: transparent;
    text-shadow: 0 0 0 #0000,
    0 0 12px rgba(30, 233, 233, .35),
    0 0 18px rgba(138, 91, 255, .25);
}

h1:hover {
    filter: drop-shadow(0 0 10px rgba(30, 233, 233, .35)) drop-shadow(0 0 12px rgba(166, 255, 77, .3));
}

.cta-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

.btn {
    --glow: rgba(30, 233, 233, .55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 800;
    letter-spacing: .2px;
    cursor: pointer;
    background: #fff;
    border: 2px solid var(--cy);
    box-shadow: 0 0 0 0 var(--glow), inset 0 0 0 0 var(--glow);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    text-decoration: none;
    color: var(--text);
}

.btn:hover {
    box-shadow: 0 0 20px 4px var(--glow), inset 0 0 12px rgba(166, 255, 77, .35);
    transform: translateY(-1px);
    border-color: var(--lime);
}

.btn.secondary {
    border-color: var(--violet);
}

/* ===== Typography & content ===== */
h2 {
    font-size: clamp(22px, 2.5vw, 28px);
    margin: 34px 0 14px;
    line-height: 1.25;
    font-weight: 900;
    position: relative;
    padding-left: 16px;
}

h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .1em;
    bottom: .1em;
    width: 6px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--cy), var(--violet));
    box-shadow: 0 0 10px rgba(30, 233, 233, .35);
}

p {
    color: var(--text);
    margin: 14px 0;
}

p, li {
    font-size: 17px;
}

p.fade-in {
    opacity: 0;
    transform: translateY(6px);
    animation: fadeInUp .6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: none
    }
}

strong {
    color: var(--text);
    background: linear-gradient(90deg, var(--cy), var(--lime));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
}

em {
    color: var(--violet);
    font-style: italic;
}

/* Lists */
ul, ol {
    padding-left: 1.25em;
}

ul li {
    position: relative;
    list-style: none;
    margin: 10px 0 10px 0;
    padding-left: 1.1em;
}

ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: .6em;
    height: .6em;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cy), var(--violet));
    box-shadow: 0 0 10px rgba(30, 233, 233, .45);
}

ol {
    counter-reset: neon;
}

ol li {
    counter-increment: neon;
    margin: 10px 0;
    padding-left: .6em;
}

ol li::marker {
    font-weight: 800;
    color: var(--text);
}

ol li::before {
    content: counter(neon);
    margin-right: .65em;
    display: inline-grid;
    place-items: center;
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    font-weight: 900;
    color: var(--text);
    border: 2px solid var(--violet);
}

/* Tables */
.table-wrap {
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

thead th {
    text-align: left;
    background: linear-gradient(180deg, #fff, #fafafa);
    position: sticky;
    top: 0;
    z-index: 1;
}

th, td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

tbody tr:nth-child(even) {
    background: #fafafa;
}

tbody tr:hover {
    background: rgba(166, 255, 77, .12);
}

table, th, td {
    border-color: var(--border);
}

tbody td, thead th {
    border-right: 1px solid var(--border);
}

tbody td:last-child, thead th:last-child {
    border-right: none;
}

table.neon {
    border: 1px solid rgba(138, 91, 255, .35);
    box-shadow: 0 0 0 1px rgba(30, 233, 233, .2) inset, 0 0 12px rgba(138, 91, 255, .2);
}

/* Images */
picture, img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-frame img {
    border-radius: 14px;
    border: 2px solid rgba(138, 91, 255, .35);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 24px 0 40px;
    background: #fff;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.copyright {
    color: var(--muted);
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    position: relative;
    padding: 6px 8px;
}

.footer-links a::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, var(--cy), var(--violet));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.footer-links a:hover::after {
    transform: scaleX(1);
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}


/* ==== New burger classes (no conflicts) ==== */
.kc-nav__btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.kc-nav__icon {
    width: 20px;
    height: 2px;
    background: var(--text);
    position: relative;
    display: block;
}

.kc-nav__icon::before, .kc-nav__icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text);
}

.kc-nav__icon::before {
    top: -6px
}

.kc-nav__icon::after {
    top: 6px
}

/* Drawer sits ON TOP of everything */
.kc-nav__drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #fff;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s cubic-bezier(.2, .8, .2, 1);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
}

.kc-nav__drawer.is-open {
    max-height: 240px;
}

/* або 100vh, якщо треба весь екран */

.kc-nav__list {
    list-style: none;
    margin: 0;
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kc-nav__list a {
    display: block;
    padding: 12px 14px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.kc-nav__list a:hover {
    box-shadow: 0 0 0 3px rgba(30, 233, 233, .25), 0 0 12px rgba(138, 91, 255, .25) inset;
}

/* Dark overlay behind the drawer */
.kc-nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .25);
    backdrop-filter: blur(2px);
    z-index: 9999;
}

/* Show burger & hide desktop nav on mobile (не чіпає інші стилі) */
@media (max-width: 1000px) {
    header nav {
        display: none;
    }

    .kc-nav__btn {
        display: inline-flex;
    }
}


@media (max-width: 1000px){
    header > nav { display: none !important; }
    .kc-nav__btn { display: inline-flex !important; }
    .kc-nav__drawer nav { display: block !important; }
}