/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    outline: none;
    padding: 0;
}

:root {
    --bg-base: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --border: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-glow: rgba(37, 99, 235, 0.18);

    --green: #16a34a;
    --cyan: #0891b2;
    --purple: #7c3aed;
    --orange: #ea580c;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

    --container: 1200px;
    --nav-h: 64px;
}

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

body {
    font-family: var(--font);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

span[itemprop="provider"],
span[itemprop="publisher"] {
    display: none;
}

/* ===== LAYOUT ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px);
}

/* ===== TYPOGRAPHY ===== */
.text-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== SHARED LISTING PAGES ===== */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 111px 0 72px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.page-hero__dots {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(37, 99, 235, 0.1) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.page-hero__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 5px 13px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 100px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 600;
}

.page-hero__title {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.page-hero__desc {
    max-width: 420px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.page-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 600;
}

.page-pill--blue {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.page-pill--green {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.18);
}

.page-pill--yellow {
    color: #a16207;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.24);
}

.page-pill--cyan {
    color: var(--cyan);
    background: rgba(8, 145, 178, 0.08);
    border: 1px solid rgba(8, 145, 178, 0.18);
}

.page-search-wrap {
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-search-wrap__label {
    margin: 0;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-search {
    position: relative;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--bg-card);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.page-search:focus-within {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.page-search__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
    transform: translateY(-50%);
}

.page-search__input {
    width: 100%;
    padding: 14px 46px 14px 42px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
}

.page-search__input::placeholder {
    color: var(--text-muted);
}

.page-search__kbd {
    position: absolute;
    top: 50%;
    right: 12px;
    padding: 2px 7px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    transform: translateY(-50%);
    transition: opacity 0.2s;
}

.page-search:focus-within .page-search__kbd {
    opacity: 0;
}

.page-search__hint {
    margin: 0;
    color: var(--text-muted);
    font-size: 12.5px;
}

.page-search__hint strong {
    color: var(--accent);
    font-weight: 700;
}

.page-section {
    padding: 48px 0 80px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-base) 120px);
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.page-main {
    min-width: 0;
}

.page-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.page-sidebar-title {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
}

.page-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.page-suggest-card {
    border-color: rgba(217, 119, 6, 0.16);
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.04), transparent 26%),
        linear-gradient(145deg, rgba(255, 251, 235, 0.62), rgba(255, 255, 255, 0.98) 62%, rgba(248, 250, 252, 0.82));
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.page-suggest-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 12px;
    background: #fff;
    color: #f59e0b;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.06);
}

.page-suggest-card h3 {
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
}

.page-suggest-card p {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
}

.page-suggest-card__btn {
    width: 100%;
    border: 1px solid rgba(217, 119, 6, 0.2);
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #f59e0b;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.08);
    justify-content: center;
}

.page-suggest-card__btn:hover {
    border-color: rgba(217, 119, 6, 0.26);
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    color: #f59e0b;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.11);
}

.page-content-section {
    margin-bottom: 40px;
}

.page-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.page-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 700;
}

.page-section-count {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 650;
}

.page-section-title svg {
    color: var(--accent);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 28px;
}

.pagination__summary {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
}

.pagination__controls {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(12px);
}

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

.pagination__btn,
.pagination__page,
.pagination__ellipsis {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.pagination__ellipsis {
    min-width: 24px;
    color: rgba(100, 116, 139, 0.58);
    font-weight: 800;
    letter-spacing: 0;
}

.pagination__btn:hover,
.pagination__page:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent);
}

.pagination__page--active,
.pagination__page--active:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--accent);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.pagination__btn--disabled {
    color: rgba(100, 116, 139, 0.4);
    pointer-events: none;
}

.technology-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.technology-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 13px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    transition: border-color 0.16s, background 0.16s, color 0.16s, box-shadow 0.16s;
}

.technology-filter-btn:hover,
.technology-filter-btn.is-active {
    border-color: rgba(37, 99, 235, 0.32);
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.page-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.page-card-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
    color: var(--accent);
}

.wiki-home-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.wiki-home-card {
    display: flex;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    align-items: center;
    min-height: 52px;
}

.wiki-home-card:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02), rgba(124, 58, 237, 0.02));
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.wiki-home-card__main {
    display: flex;
    width: 100%;
}

.wiki-home-card > [itemprop="item"] {
    display: flex;
    width: 100%;
    min-width: 0;
}

.wiki-home-card__body {
    display: flex;
    min-width: 0;
    flex: 1;
}

.wiki-home-card__title {
    margin: 0;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
}

.wiki-home-card:hover .wiki-home-card__title {
    color: var(--accent);
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
    gap: 22px;
}

.edu-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    animation: cardIn 0.5s cubic-bezier(.22, .68, 0, 1.2) both;
    animation-delay: calc(var(--i, 0) * 60ms);
    transition: box-shadow 0.28s, border-color 0.28s, transform 0.28s;
}

.edu-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 0 0 1.5px rgba(37, 99, 235, 0.35), 0 24px 60px rgba(37, 99, 235, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.edu-card--premium {
    border-color: rgba(217, 119, 6, 0.25);
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.1), transparent 33%),
        var(--bg-card);
}

.edu-card--premium:hover {
    border-color: rgba(217, 119, 6, 0.28);
    box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.14), 0 22px 54px rgba(245, 158, 11, 0.1), 0 8px 24px rgba(0, 0, 0, 0.07);
}

.edu-card__premium {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 5px;
    width: fit-content;
    border-radius: 999px;
    color: #92400e;
    font-size: 118px;
    font-weight: 700;
    line-height: 1;
}

.edu-card__premium svg {
    height: 20px;
    width: 20px;
}

.edu-card__shine {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    border-radius: 20px;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
    background-position: -100% 0;
    background-size: 200% 100%;
    transition: background-position 0s;
}

.edu-card:hover .edu-card__shine {
    background-position: 200% 0;
    transition: background-position 0.55s ease;
}

.edu-card__content {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 16px;
    padding: 22px 20px 20px;
}

.edu-card > [itemprop="item"] {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
}

.edu-card__open {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    opacity: 0;
    text-decoration: none;
    transform: scale(0.85);
    transition: opacity 0.2s, transform 0.2s, background 0.15s, color 0.15s, border-color 0.15s;
}

.edu-card:hover .edu-card__open {
    opacity: 1;
    transform: scale(1);
}

.edu-card__open:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.edu-card__top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.edu-card__logo-wrap {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 14px;
    transition: transform 0.28s cubic-bezier(.22, .68, 0, 1.4), box-shadow 0.28s, border-color 0.28s;
}

.edu-card:hover .edu-card__logo-wrap {
    transform: scale(1.07);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.18);
}

.edu-card__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.edu-card__initials {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.edu-card__meta {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.edu-card__name {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 5px;
}

.edu-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
    text-overflow: ellipsis;
    transition: color 0.15s;
    white-space: nowrap;
    width: fit-content;
}

.edu-card__link:hover {
    color: var(--accent);
}

.edu-card__phone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 10px 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.edu-card__phone-num {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.edu-card__phone-btn {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--accent);
    border-radius: 9px;
    color: #fff;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.edu-card__phone-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.edu-noresult,
.edu-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 80px 20px;
    text-align: center;
}

.edu-noresult__ico,
.edu-empty__ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--text-muted);
}

.edu-noresult strong,
.edu-empty strong {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
}

.edu-noresult span,
.edu-empty span {
    color: var(--text-muted);
    font-size: 13.5px;
}

.edu-card--hidden {
    display: none !important;
}

.education-filter-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.education-filter-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
}

.education-filter-card__head .page-sidebar-title {
    margin: 0;
}

.education-filter-card__head > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
}

.education-filter-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.education-filter-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 6px 8px 6px 6px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.72);
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color 0.16s, background 0.16s, color 0.16s, box-shadow 0.16s;
}

.education-filter-item:hover,
.education-filter-item.is-active {
    border-color: rgba(37, 99, 235, 0.28);
    background: rgba(37, 99, 235, 0.07);
    color: var(--accent);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.education-filter-item__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 3px;
    overflow: hidden;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
}

.education-filter-item__logo img {
    width: 100%;
    height: 100%;
    padding: 2px;
    object-fit: contain;
}

.education-filter-item__name {
    overflow: hidden;
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.education-filter-item__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
}

/* ===== EVENTS PAGE ===== */

.event-panel-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}

.event-card > *:not(.event-panel-link),
.card--event > *:not(.event-panel-link),
.meetup-notif > *:not(.event-panel-link) {
    position: relative;
    z-index: 1;
}

.event-card__actions,
.card__actions,
.meetup-notif__actions,
.event-card__date,
.event-card__body h3 a,
.card__title-link,
.meetup-notif__title a {
    position: relative;
    z-index: 3;
}

.events-upcoming-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 26px;
}

.events-upcoming-panel .event-card {
    margin-bottom: 0;
}

.event-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 76px;
    min-height: 88px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, rgba(239, 246, 255, 0.7));
    color: var(--text-primary);
    line-height: 1;
}

.event-card__date span {
    font-size: 31px;
    font-weight: 800;
}

.event-card__date small {
    margin-top: 5px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.event-card__date em {
    margin-top: 5px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10px;
    font-style: normal;
}

.event-card__body {
    min-width: 0;
}

.event-card__topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 650;
}

.event-card h3 {
    margin: 8px 0 7px;
    color: var(--text-primary);
    font-weight: 750;
    line-height: 1.25;
}

.event-card h3 {
    font-size: 17px;
}

.event-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.event-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 13px;
}

.event-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.event-card__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-card {
    position: relative;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    align-items: start;
    gap: 18px;
    overflow: hidden;
    padding: 20px 18px 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: rgba(148, 163, 184, 0.5);
}

.event-card::hover ::before {
    background-color: var(--accent);
}

.event-card--upcoming::before {
    background: linear-gradient(180deg, var(--accent), var(--cyan));
}

.event-card--upcoming {
    border-color: rgba(16, 185, 129, 0.14);
    background:
        linear-gradient(105deg, rgba(240, 253, 244, 0.34) 0%, rgba(255, 255, 255, 0.98) 34%, rgba(255, 255, 255, 0.96) 100%);
}

.event-card--past::before {
    background: rgba(148, 163, 184, 0.45);
}

.event-card:hover {
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.event-card:hover .event-card__date {
    border-color: rgba(37, 99, 235, 0.32);
}

.event-card__body h3 a {
    transition: color 0.15s;
}

.event-card__body h3 a:hover {
    color: var(--accent);
}

.event-card .card__tags {
    margin-top: 12px;
}

.event-card__actions {
    min-width: 106px;
}

.event-card__details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 9px 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.9);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 650;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
}

.event-card__details:hover {
    border-color: rgba(37, 99, 235, 0.28);
    background: rgba(37, 99, 235, 0.07);
    color: var(--accent);
    transform: translateX(1px);
}

.event-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.event-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 13px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.66);
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.event-filter-btn:hover,
.event-filter-btn.is-active {
    border-color: rgba(37, 99, 235, 0.28);
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08);
}

.sponsor-block {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    padding: 15px;
    border: 1px solid rgba(244, 63, 94, 0.16);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(244, 63, 94, 0.05), transparent 21%),
        linear-gradient(145deg, rgba(255, 241, 242, 0.86), rgba(255, 255, 255, 0.96) 56%, rgba(239, 246, 255, 0.78));
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.sponsor-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
}

.sponsor-head .page-sidebar-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
}

.sponsor-head p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 12.5px;
    line-height: 1.45;
}

.sponsor-heart {
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 12px;
    background: #fff;
    color: #e11d48;
    box-shadow: 0 8px 18px rgba(244, 63, 94, 0.12);
}

.sponsor-list {
    display: grid;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 9px;
}

.sponsor-item {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, background 0.15s;
}

.sponsor-item:hover {
    border-color: rgba(244, 63, 94, 0.26);
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.sponsor-logo {
    display: block;
    place-items: center;
    width: 100%;
    min-width: 0;
    border-radius: 7px;
    background: #fff;
    padding: 2px;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    padding: 2px;
    object-fit: contain;
}

.sponsor-logo--heart {
    color: #e11d48;
    font-size: 18px;
    background: linear-gradient(145deg, #fff, #fff1f2);
}

.sponsor-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid rgba(244, 63, 94, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    color: #be123c;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.sponsor-cta:hover {
    border-color: rgba(244, 63, 94, 0.3);
    background: #fff;
    color: #9f1239;
    transform: translateY(-1px);
}


.event-detail-tags,
.event-detail-actions {
    margin-top: 18px;
}

.event-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.oneclock-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.07), rgba(37, 99, 235, 0.04));
}

.oneclock-panel__text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.oneclock-panel__text span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.oneclock-panel__text strong {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.oneclock-panel__btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 8px 11px;
    border-radius: 9px;
    background: linear-gradient(135deg, #8b5cf6, #4f46e5);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.22);
    transition: box-shadow 0.18s, transform 0.18s;
}

.oneclock-panel__btn:hover {
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.28);
    transform: translateY(-1px);
}

.event-guests {
    display: flex;
    align-items: center;
    margin-top: 16px;
}

.event-guests__single {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    color: var(--text-primary);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.event-guests__single img,
.event-guests__single span,
.event-guests__avatar,
.event-guests__more {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    color: #fff;
    font-size: 10px;
    font-weight: 750;
    object-fit: cover;
    overflow: hidden;
}

.event-guests__single strong {
    padding-right: 2px;
    font-size: 12.5px;
    font-weight: 700;
}

.event-guests__stack {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.event-guests__person {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 9px 3px 3px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.event-guests__person strong {
    max-width: 148px;
    overflow: hidden;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-guests__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-guests__more {
    flex: 0 0 auto;
    border-color: rgba(15, 23, 42, 0.08);
    background: #e2e8f0;
    color: var(--text-secondary);
    font-size: 11px;
    box-shadow: none;
}

.event-speaker-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 5px 9px 5px 5px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 12px;
}

.event-speaker-inline img,
.event-speaker-inline span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    color: #fff;
    font-size: 10px;
    font-weight: 750;
    object-fit: cover;
}

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.leader-card {
    position: relative;
    display: flex;
    min-height: 200px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    overflow: hidden;
    padding: 18px 18px 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.leader-card::before {
    content: '';
    position: absolute;
    inset: 0;
    height: 86px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(8, 145, 178, 0.04));
    pointer-events: none;
    border-bottom: 1px solid var(--accent-glow);
}

.leader-card__dev-icon {
    position: absolute;
    top: 11px;
    right: 11px;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    min-width: 25px;
    height: 25px;
    padding: 0 8px;
    border-radius: 999px;
    color: var(--accent-glow);
}

.leader-card:hover {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.leader-card__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.leader-card__photo-wrap {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 111px;
    height: 111px;
    border: 1px solid var(--accent-glow);
    border-radius: 22px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.07);
}

.leader-card__photo {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 111px;
    height: 111px;
    overflow: hidden;
    border: 1.5px solid var(--accent-glow);
    border-radius: 18px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    box-shadow: none;
}

.leader-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-card__body {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    padding-top: 0;
}

.leader-card__body h3 {
    max-width: 100%;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text-primary);
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.2;
}

.leader-card__body p {
    display: flex;
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.leader-card__body p span {
    max-width: 100%;
    padding: 4px 9px;
    overflow: hidden;
    border: 1px solid var(--accent-glow);
    border-radius: 8px;
    background: rgba(255, 255, 255, 1);
    color: #64748b;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 1px;
}

.leader-card__company {
    margin-top: 10px;
    width: fit-content;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.06);
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leader-card__links {
    display: flex;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    flex-wrap: wrap;
    width: 100%;
    gap: 7px;
    margin-top: auto;
    padding-top: 3px;
}

.leader-card__link {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    height: 35px;
    padding: 0 9px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 9px;
    background: rgba(248, 250, 252, 0.82);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 650;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
}

.leader-card__link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leader-card__link:hover {
    border-color: rgba(37, 99, 235, 0.26);
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent);
    transform: translateY(-1px);
}

.leader-card__link--linkedin:hover {
    border-color: rgba(10, 102, 194, 0.26);
    background: rgba(10, 102, 194, 0.08);
    color: #0a66c2;
}

.leader-card__link--github:hover {
    border-color: rgba(15, 23, 42, 0.2);
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-primary);
}

.btns {
    gap: 9px;
    display: flex;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

.btn--primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn--primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(37, 99, 235, 0.4);
}

.btn--ghost {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    background: rgba(0, 0, 0, 0.07);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn--outline:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.25);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    letter-spacing: 0.01em;
}

.btn--register {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3), 0 1px 4px rgba(0, 0, 0, 0.1) !important;
    position: relative;
    overflow: hidden;
    margin-top: 18px;
}

.btn--register::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.btn--register:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%) !important;
    box-shadow: 0 10px 36px rgba(37, 99, 235, 0.5), 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

.btn--sm {
    padding: 7px 14px;
    font-size: 13px;
}

.btn--event-detail {
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: rgba(255, 255, 255, 0.86);
    color: var(--text-secondary);
    font-weight: 650;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn--event-detail:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.btn--event-join {
    font-weight: 650;
}

.btn--event-video {
    color: #c2410c;
    border-color: rgba(194, 65, 12, 0.2);
    background: rgba(255, 247, 237, 0.88);
    font-weight: 650;
}

.btn--event-video:hover {
    color: #9a3412;
    border-color: rgba(194, 65, 12, 0.32);
    background: rgba(255, 237, 213, 0.95);
}

/* ===== TAGS ===== */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.tag--live {
    background: rgba(22, 163, 74, 0.1);
    color: var(--green);
    border-color: rgba(22, 163, 74, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tag--past {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-muted);
    border-color: var(--border);
}

.tag--new {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.2);
}

/* ===== NAV ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav--scrolled {
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.nav--menu-open {
    background: rgba(248, 250, 252, 0.98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}

.nav__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 100%;
}

.nav__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav__logo-img {
    height: 30px;
    width: auto;
    filter: brightness(0);
    opacity: 0.85;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav__links a {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.nav__links a:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.06);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* Hamburger button */
.nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 8px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    flex-shrink: 0;
}

.nav__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

.nav__burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__burger.is-open span:nth-child(2) {
    opacity: 0;
}

.nav__burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */

/* Floating orbs */
@keyframes orb-drift-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.08);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes orb-drift-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    40% {
        transform: translate(-35px, 25px) scale(1.05);
    }

    70% {
        transform: translate(20px, -15px) scale(0.97);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes orb-drift-3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(15px, 30px) scale(1.06);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Grid scan line */
@keyframes scan {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 48px;
    }
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: calc(var(--nav-h) + 60px) 0 100px;
}

.hero__fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-base) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle dot-grid */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
    animation: scan 6s linear infinite;
}

/* Soft accent orbs */
.hero__orb-1,
.hero__orb-2,
.hero__orb-3 {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(72px);
}

.hero__orb-1 {
    width: 420px;
    height: 420px;
    top: -80px;
    left: -100px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    animation: orb-drift-1 14s ease-in-out infinite;
}

.hero__orb-2 {
    width: 320px;
    height: 320px;
    bottom: -60px;
    left: 35%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.09) 0%, transparent 70%);
    animation: orb-drift-2 18s ease-in-out infinite;
}

.hero__orb-3 {
    width: 260px;
    height: 260px;
    top: 10%;
    right: -40px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.07) 0%, transparent 70%);
    animation: orb-drift-3 22s ease-in-out infinite;
}



.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 64px;
    align-items: center;
    width: 100%;
}

.hero__left {
    min-width: 0;
}

.hero__right {
    flex-shrink: 0;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.04);
    margin-bottom: 28px;
}

.badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero__title {
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero__desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero__cta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 56px;
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    gap: 0;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 24px;
}

.stat:first-child {
    padding-left: 0;
}

.stat__num {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.stat__label {
    font-size: 13px;
    color: var(--text-muted);
}

.stat__divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

.hero__map {
    display: none;
}

.map-svg {
    width: 100%;
    height: auto;
}

/* ===== MEETUP NOTIFICATION CARD ===== */
.hero__mobile-meetup {
    display: none;
}

.meetup-notif {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.78));
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08), 0 1px 4px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.meetup-notif:hover {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.11);
    transform: translateY(-1px);
}

.meetup-notif__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.meetup-notif__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.meetup-notif__date-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.meetup-notif__date {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meetup-notif__day {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.meetup-notif__month {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meetup-notif__num {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    align-self: flex-start;
}

.meetup-notif__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.meetup-notif__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.meetup-notif__title a:hover {
    color: var(--primary);
}

.meetup-notif__topic {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.meetup-notif__meta {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.meetup-notif__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.meetup-notif__btn {
    width: 100%;
    justify-content: center;
}

.meetup-notif__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 10px;
}

/* ===== UPCOMING BANNER ===== */
.upcoming-banner {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.06) 0%, rgba(124, 58, 237, 0.04) 100%);
    border-top: 1px solid rgba(37, 99, 235, 0.12);
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
    padding: 14px 0;
}

.upcoming-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.upcoming-banner__left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.upcoming-banner__date {
    color: var(--text-secondary);
    font-weight: 400;
}

.upcoming-banner__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.upcoming-banner__topic {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section--alt {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
}

.section__head--center {
    justify-content: center;
    text-align: center;
}

.section__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 8px;
}

.section__title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section__sub {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* ===== MEETUP GRID ===== */
.meetup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card--event {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    cursor: pointer;
    border-color: rgba(148, 163, 184, 0.22);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
        var(--bg-card);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.card--event::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.75), rgba(8, 145, 178, 0.55));
    opacity: 0.34;
    transition: opacity 0.2s;
}

.card--event:hover::before {
    opacity: 1;
}

.card--event:hover {
    border-color: rgba(37, 99, 235, 0.26);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.card--event-wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 0;
    border-color: rgba(16, 185, 129, 0.14);
    background:
        linear-gradient(105deg, rgba(240, 253, 244, 0.34) 0%, rgba(255, 255, 255, 0.98) 34%, rgba(255, 255, 255, 0.96) 100%);
}

.card--event-wide:hover {
    border-color: rgba(16, 185, 129, 0.22);
}

.card--row__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-right: 28px;
    margin-right: 28px;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
}

.card--row__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.card--row__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    padding-left: 28px;
    margin-left: 28px;
    border-left: 1px solid var(--border);
    flex-shrink: 0;
}

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 78px;
    padding: 9px 10px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, rgba(239, 246, 255, 0.78));
    line-height: 1;
}

.date__day {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.date__month {
    font-size: 11px;
    font-weight: 750;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.date__year {
    font-size: 11px;
    color: var(--text-muted);
    padding: 0 8px;
    font-family: var(--font-mono);
    margin-top: 4px;
}

.card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-top: 2px;
}

.card__title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.card__title-link:hover {
    color: var(--primary);
}

.card__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.card__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta__item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--text-muted);
}

.meta__item svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
}

.card__action {
    margin-top: auto;
}

.card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card--event:not(.card--event-wide) {
    min-height: 100%;
    padding: 22px;
    gap: 14px;
}

.card--event:not(.card--event-wide) .btn--event-detail {
    min-width: 78px;
    justify-content: center;
}

.card--row__right .card__actions {
    justify-content: flex-end;
}

/* ===== TECH LIST (DARSLIKLAR) ===== */
.tech-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(111px, 1fr));
    gap: 14px;
}

.tech-list--lg {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}
.tech-item {
    padding: 22px 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.tech-item [itemprop="item"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.tech-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
}

.tech-item__icon {
    width: 52px;
    height: 52px;
    padding: 4px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

.tech-item__icon img,
.tech-item [itemprop="item"] > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
}

.tech-item [itemprop="item"] > img {
    width: 52px;
    height: 52px;
    max-width: 52px;
    max-height: 52px;
    padding: 4px;
}

.tech-item__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.3;
}

.tech-item>img {
    width: 52px;
    height: 52px;
    padding: 4px;
    object-fit: contain;
}

.tech-item>span:first-child {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.tech-item [itemprop="item"] > span:not([itemprop="provider"]):not(.tech-item__name) {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.tech-item>strong {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.tech-item [itemprop="item"] > strong {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

/* Tech icon brand colors */
.ti--python {
    background: rgba(55, 118, 171, 0.12);
    color: #3776ab;
}

.ti--js {
    background: rgba(240, 219, 79, 0.2);
    color: #a07d00;
}

.ti--ts {
    background: rgba(49, 120, 198, 0.12);
    color: #3178c6;
}

.ti--react {
    background: rgba(8, 126, 164, 0.1);
    color: #087ea4;
}

.ti--cpp {
    background: rgba(0, 68, 130, 0.1);
    color: #004482;
}

.ti--csharp {
    background: rgba(104, 33, 122, 0.1);
    color: #68217a;
}

.ti--sql {
    background: rgba(49, 97, 146, 0.1);
    color: #316192;
}

.ti--go {
    background: rgba(0, 173, 216, 0.1);
    color: #00add8;
}

.ti--django {
    background: rgba(9, 46, 32, 0.1);
    color: #0c4b33;
}

.ti--rust {
    background: rgba(206, 66, 43, 0.1);
    color: #ce422b;
}

/* ===== TECH CLOUD ===== */
.tech-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tech-tag {
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 13.5px;
    font-weight: 500;
    font-family: var(--font-mono);
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    cursor: default;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tech-tag:hover {
    background: var(--bg-card-hover);
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.tech-tag--lg {
    font-size: 14.5px;
    padding: 10px 22px;
}

/* ===== SPONSORS ===== */
.sponsor-tiers {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-top: 48px;
}

.sponsor-tiers--page {
    margin-top: 0;
}

.donations-widget-card {
    gap: 14px;
    padding: 16px;
}

.donations-widget-card h3 {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.donations-widget-frame {
    display: block;
    width: 100%;
    height: 280px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: #fff;
}

.sponsor-tier__title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.sponsor-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.sponsor-grid--lg {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.sponsor-grid--md {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.sponsor-grid--sm {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.sponsor-card--lg {
    min-height: 110px;
    padding: 0;
}

.sponsor-card--lg .sponsor-card__logo {
    width: 100%;
    height: auto;
    padding: 5px;
}

.sponsor-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.sponsor-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.sponsor-card__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.sponsor-card__logo {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    padding: 6px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.55);
    transition: filter 0.25s ease;
    display: block;
}

.sponsor-card:hover .sponsor-card__logo {
    filter: grayscale(0) opacity(1);
}

.sponsor-card--become {
    border-style: dashed;
    border-color: var(--border-hover);
    color: var(--text-muted);
    font-size: 13px;
}

.sponsor-card--become:hover {
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--accent);
    background: rgba(37, 99, 235, 0.03);
}

/* ===== MEETUP DETAIL PAGE ===== */
.meetup-hero {
    position: relative;
    padding: calc(var(--nav-h) + 70px) 0 80px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
}

.meetup-hero__inner {
    position: relative;
    z-index: 1;
}

.meetup-hero__head {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 32px;
}

.meetup-hero__title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 12px 0 16px 0;
    color: var(--text-primary);
}

.meetup-hero__desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
}

.meetup-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 250px;
}

.meta-item {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.meta-item svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

.meta-item__label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.meta-item__value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2px;
}

/* MEETUP CONTENT LAYOUT */
.meetup-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.meetup-main {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.article {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.article p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.article ul {
    list-style: none;
    padding: 0;
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.content-list li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.content-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* TOPICS GRID */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.topic-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.topic-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.topic-card__icon {
    font-size: 32px;
    flex-shrink: 0;
}

.topic-card__content h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.topic-card__content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* AGENDA */
.agenda {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
}

.agenda-item {
    display: flex;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.agenda-item:last-child {
    border-bottom: none;
}

.agenda-item:hover {
    background: var(--bg-card-hover);
}

.agenda-time {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    min-width: 60px;
    font-family: var(--font-mono);
}

.agenda-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.agenda-content p {
    font-size: 13px;
    color: var(--text-muted);
}

/* SIDEBAR */
.meetup-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: calc(var(--nav-h) + 20px);
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-card h3 {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.sidebar-card.page-suggest-card {
    border-color: rgba(217, 119, 6, 0.16);
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.04), transparent 28%),
        linear-gradient(145deg, rgba(255, 251, 235, 0.62), rgba(255, 255, 255, 0.98) 62%, rgba(248, 250, 252, 0.84));
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.sidebar-card.page-suggest-card .page-suggest-card__btn.btn--primary {
    border: 1px solid rgba(217, 119, 6, 0.2);
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #7c2d12;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.08);
}

.sidebar-card.page-suggest-card .page-suggest-card__btn.btn--primary:hover {
    border-color: rgba(217, 119, 6, 0.26);
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #7c2d12;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.11);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item__label {
    font-size: 12px;
    color: var(--text-muted);
}

.stat-item__value {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* SPEAKERS */
.speaker {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.speaker:last-child {
    border-bottom: none;
}

.speaker__avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), var(--purple));
    color: white;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

.speaker__info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.speaker__info p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0;
}

.speaker__company {
    color: var(--accent);
    font-weight: 500;
}

/* SPONSORS */
.sponsors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* ===== MEETUP SIDEBAR SPONSORS ===== */
.sidebar-card--sponsors {
    border-color: rgba(234, 179, 8, 0.25);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.03) 0%, var(--bg-card) 60%);
    box-shadow: 0 2px 12px rgba(234, 179, 8, 0.08);
}

.sidebar-card--sponsors h3 {
    color: var(--text-primary);
}

.sponsors-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sponsor-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sponsor-slot:hover {
    transform: translateX(2px);
}

.sponsor-slot--gold {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(234, 179, 8, 0.04) 100%);
    border-color: rgba(234, 179, 8, 0.35);
}

.sponsor-slot--silver {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.09) 0%, rgba(100, 116, 139, 0.03) 100%);
    border-color: rgba(100, 116, 139, 0.25);
}

.sponsor-slot__left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sponsor-slot__tier {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sponsor-slot--gold .sponsor-slot__tier {
    color: #92400e;
}

.sponsor-slot--silver .sponsor-slot__tier {
    color: #475569;
}

.sponsor-slot__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.sponsor-slot__badge {
    font-size: 20px;
    flex-shrink: 0;
}

.cta-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-section__content {
    max-width: 560px;
    flex: 1;
}

.cta-section__map {
    position: relative;
    display: grid;
    place-items: center;
    max-width: 100%;
    width: min(520px, 48vw);
    flex-shrink: 0;
    pointer-events: none;
}

.cta-section__map::before {
    content: '';
    position: absolute;
    inset: 12% 6%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.07) 0%, rgba(8, 145, 178, 0.04) 44%, transparent 74%);
    filter: blur(22px);
}

.map-svg--cta {
    position: relative;
    width: 100%;
    max-height: 340px;
    object-fit: contain;
    opacity: 0.64;
    filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.07));
}

.cta-section__title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.cta-section__desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}

.cta-section__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 63px;
    padding: 60px 24px;
    max-width: var(--container);
    margin: 0 auto;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer__logo {
    height: 45px;
    width: fit-content;
    opacity: 0.9;
    float: left;
}

.footer__tagline {
    font-size: 14px;
    color: var(--text-muted);
    margin: 5px 0 11px;
}

.footer__socials {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.footer__socials a {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--text-primary);
    transition: all 0.15s;
}

.footer__socials a:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer__col a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.15s;
}

.footer__col a:hover {
    color: var(--text-primary);
}

.footer__contact {
    gap: 10px;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 230px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.footer-contact-link__icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
}

.footer-contact-link__icon svg {
    height: 100%;
    width: 100%;
}

.footer-contact-link__body {
    min-width: 0;
}

.footer-contact-link strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    color: currentColor;
    transition: color 0.15s ease;
}

.footer-contact-link small {
    display: block;
    margin-top: 1px;
    font-size: 12px;
    line-height: 1.3;
    color: currentColor;
    opacity: 0.82;
}

.footer-contact-link--telegram {
    color: #229ed9;
    background: rgba(34, 158, 217, 0.1);
    border-color: rgba(34, 158, 217, 0.26);
}

.footer-contact-link--instagram {
    color: #d9468f;
    background: rgba(217, 70, 143, 0.09);
    border-color: rgba(217, 70, 143, 0.24);
}

.footer-contact-link:hover {
    transform: translateY(-1px);
}

.footer-contact-link--telegram:hover {
    color: #1688bf;
    background: rgba(34, 158, 217, 0.15);
    border-color: rgba(34, 158, 217, 0.34);
}

.footer-contact-link--instagram:hover {
    color: #c92d7a;
    background: rgba(217, 70, 143, 0.14);
    border-color: rgba(217, 70, 143, 0.32);
}

.footer__bottom {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
}

.footer__bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {

    /* Touch target improvements - min 44px for mobile */
    .btn {
        min-height: 44px;
        padding: 10px 16px;
    }

    .btn--lg {
        min-height: 48px;
        padding: 12px 20px;
    }

    .tag {
        min-height: 32px;
        padding: 6px 12px;
    }

    /* Better input sizing */
    .wiki-search__input {
        min-height: 44px;
        padding: 12px 48px 12px 40px;
    }

    /* Improved tap areas */
    a,
    button {
        -webkit-tap-highlight-color: transparent;
    }

    /* Better spacing */
    .section {
        padding: 40px 0;
    }

    .section__head {
        margin-bottom: 20px;
    }
}

/* ===== RESPONSIVE ===== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .page-sidebar {
        position: static;
        top: auto;
    }

    .page-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .hero__inner {
        grid-template-columns: 1fr 320px;
        gap: 40px;
    }

    .cta-section__map {
        width: 260px;
    }

    .card--event-wide {
        flex-direction: row;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer__links {
        grid-template-columns: repeat(2, 1fr);
    }


    .lesson-view-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .lesson-sidebar {
        position: static;
        top: auto;
    }

    .lesson-share-btn {
        position: static;
        width: auto;
        height: auto;
        border-radius: var(--radius-md);
        margin-bottom: 16px;
    }

    .meetup-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .meetup-sidebar {
        position: static;
        top: auto;
    }

    .topics-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }



    .wiki-view-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .wiki-sidebar {
        position: static;
        top: auto;
    }

    .wiki-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .wiki-related__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Mobile Landscape & Tablet (768px and below) */
@media (max-width: 768px) {
    :root {
        --nav-h: 56px;
    }

    .page-hero {
        padding: 72px 0 44px;
    }

    .page-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .page-search-wrap {
        flex: 1 1 100%;
        width: 100%;
    }

    .page-section {
        padding: 32px 0 64px;
    }

    .pagination {
        align-items: center;
        justify-content: center;
    }

    .pagination__controls {
        max-width: 100%;
        justify-content: center;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .pagination__controls::-webkit-scrollbar {
        display: none;
    }

    .pagination__summary {
        width: 100%;
        text-align: center;
    }

    .event-card {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .event-card__date {
        width: 100%;
        min-height: 64px;
        flex-direction: row;
        gap: 8px;
        justify-content: flex-start;
        padding: 12px 14px;
    }

    .event-card__date small,
    .event-card__date em {
        margin-top: 0;
    }

    .event-card__actions {
        min-width: 0;
        width: 100%;
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .event-card__actions .btn,
    .event-card__details {
        flex: 1 1 150px;
        justify-content: center;
    }

    .oneclock-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .oneclock-panel__btn {
        width: 100%;
    }

    .nav__burger {
        display: flex;
    }

    .nav__links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        min-height: calc(100vh - var(--nav-h));
        background: #f8fafc;
        border-bottom: none;
        flex-direction: column;
        padding: 0;
        gap: 0;
        z-index: 99;
        overflow-y: auto;
    }

    .nav__links.is-open {
        display: flex;
    }

    .nav__links a {
        padding: 14px 16px;
        font-size: 15px;
        border-radius: 0;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.15s;
    }

    .nav__links a:hover {
        background: rgba(0, 0, 0, 0.04);
    }

    .nav__links a:last-child {
        border-bottom: none;
    }

    .nav__actions .btn {
        display: none;
    }

    .nav--menu-open .nav__actions .btns {
        position: fixed;
        bottom: 18px;
        left: 18px;
        z-index: 999;
        gap: 12px;
    }

    .nav--menu-open .nav__actions .btns .btn {
        display: inline-flex;
    }

    .hero {
        padding: 48px 0 40px;
        min-height: 100vh;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero__right {
        display: none;
    }

    .hero__mobile-meetup {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
        margin-bottom: 20px;
        text-decoration: none;
    }

    .hero__title {
        font-size: clamp(28px, 5vw, 36px);
    }

    .hero__cta {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hero__cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__stats {
        gap: 0;
        flex-direction: row;
    }

    .stat {
        padding: 0 12px;
        flex: 1;
        text-align: center;
    }

    .stat:first-child {
        padding-left: 0;
    }

    .stat__num {
        font-size: 20px;
    }

    .section {
        padding: 48px 0;
    }

    .section__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }

    .section__head .btn {
        align-self: stretch;
        justify-content: center;
    }

    .section__title {
        font-size: clamp(22px, 3vw, 28px);
    }

    .meetup-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card--event-wide {
        flex-direction: column;
        align-items: flex-start;
    }

    .card--row__left {
        flex-direction: row;
        padding-right: 0;
        margin-right: 0;
        border-right: none;
        padding-bottom: 16px;
        margin-bottom: 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }

    .card--row__right {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-left: 0;
        margin-left: 0;
        border-left: none;
        padding-top: 16px;
        border-top: 1px solid var(--border);
        width: 100%;
        gap: 10px;
    }

    .card--row__right .btn {
        flex: 1;
    }

    .card {
        padding: 16px;
        gap: 12px;
    }

    .card__title {
        font-size: 15px;
    }

    .card__desc {
        font-size: 13px;
    }

    .tech-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .tech-item {
        padding: 16px 12px;
    }

    .tech-item__name {
        font-size: 12px;
    }

    .cta-section__inner {
        flex-direction: column;
        gap: 24px;
    }

    .cta-section__map {
        display: none;
    }

    .cta-section__title {
        font-size: clamp(28px, 4vw, 36px);
    }

    .footer__inner {
        padding: 40px 16px;
        gap: 32px;
    }

    .footer__brand {
        gap: 12px;
    }

    .footer__links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer__bottom .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        font-size: 12px;
    }

    /* Meetup pages */
    .meetup-hero__head {
        flex-direction: column;
        gap: 24px;
    }

    .meetup-hero__meta {
        min-width: auto;
    }

    .meetup-hero__title {
        font-size: clamp(28px, 4vw, 35px);
    }

    .meta-item {
        gap: 10px;
        padding: 10px;
    }

    /* Lesson pages */
    .lesson-view-wrap {
        min-height: auto;
    }

    .lesson-article__title {
        font-size: clamp(22px, 4vw, 28px);
    }

    .lesson-article p {
        font-size: 15px;
    }

    .lesson-nav {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .lesson-code__body {
        padding: 16px;
        overflow-x: auto;
    }

    .lesson-code__body code {
        font-size: 12px;
    }

    /* Wiki page */
    .wiki-hero__title {
        font-size: clamp(24px, 3.5vw, 32px);
    }

    .wiki-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wiki-related__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .wiki-featured {
        padding: 20px;
    }

    .wiki-filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .wiki-article-meta--top {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Mobile (640px and below) */
@media (max-width: 640px) {
    .hero__stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        width: 100%;
    }

    .stat__divider {
        display: none;
    }

    .stat {
        padding: 0;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .btn--lg {
        padding: 12px 20px;
        font-size: 14px;
    }

    .meetup-grid {
        gap: 10px;
    }

    .card {
        padding: 12px;
    }

    .tech-list {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 8px;
    }

    .tech-item {
        padding: 14px 10px;
    }

    .tech-item__icon {
        width: 44px;
        height: 44px;
    }

    .upcoming-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero__title {
        font-size: clamp(24px, 5vw, 32px);
    }

    .hero__desc {
        font-size: 15px;
    }

    .section {
        padding: 36px 0;
    }

    .section__title {
        font-size: clamp(20px, 3vw, 24px);
    }

    .footer__inner {
        padding: 32px 16px;
        gap: 24px;
    }

    .meetup-notif {
        padding: 20px;
    }

    .meetup-notif__day {
        font-size: 48px;
    }

    .wiki-grid {
        gap: 10px;
    }

    .wiki-featured {
        padding: 16px;
    }

}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .nav__logo-img {
        height: 30px;
    }

    .leader-card__link {
        flex: 0 0 38px;
        padding: 0;
    }

    .leader-card__link span {
        display: none;
    }

    .hero {
        padding: 40px 0 32px;
    }

    .hero__inner {
        gap: 20px;
        padding: 0 27px;
    }

    .hero__title {
        font-size: clamp(22px, 4vw, 28px);
    }

    .hero__mobile-meetup {
        margin-bottom: 16px;
        flex-wrap: wrap;
    }

    .hero__desc {
        font-size: 14px;
    }

    .hero__cta {
        gap: 8px;
    }

    .hero__cta .btn {
        padding: 12px 16px;
        font-size: 13px;
    }

    .btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .btn--lg {
        padding: 10px 16px;
        font-size: 13px;
    }

    .section {
        padding: 32px 0;
    }

    .stat {
        padding: 0;
    }

    .stat__num {
        font-size: 18px;
    }

    .stat__label {
        font-size: 11px;
    }

    .meetup-grid {
        gap: 8px;
    }

    .card {
        padding: 12px;
        gap: 10px;
    }

    .card__title {
        font-size: 14px;
    }

    .card__desc {
        font-size: 12px;
    }

    .card__header {
        gap: 8px;
    }

    .tech-list {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .tech-item {
        padding: 12px 9px;
        gap: 6px;
    }

    .tech-item__icon {
        width: 40px;
        height: 40px;
    }

    .tech-item strong[itemprop="name"] {
        font-size: 11px;
    }

    .hero__stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .meetup-notif {
        padding: 16px;
        gap: 12px;
    }

    .meetup-notif__day {
        font-size: 40px;
    }

    .meetup-notif__month {
        font-size: 11px;
    }

    .meetup-notif__title {
        font-size: 15px;
    }

    .section__head {
        gap: 12px;
    }

    .section__title {
        font-size: clamp(18px, 3vw, 22px);
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-section__title {
        font-size: clamp(24px, 4vw, 32px);
    }

    .footer__inner {
        padding: 28px 16px;
    }

    .upcoming-banner__inner {
        flex-direction: column;
        gap: 8px;
    }

    .upcoming-banner {
        padding: 10px 0;
    }

    .community-grid {
        grid-template-columns: 1fr;
    }

    /* Lesson pages */
    .lesson-nav {
        grid-template-columns: 1fr;
    }

    .lesson-article {
        font-size: 15px;
    }

    .lesson-article__title {
        font-size: clamp(20px, 3.5vw, 26px);
    }

    .lesson-article h2 {
        font-size: 18px;
    }

    .lesson-definition {
        padding: 12px 16px;
    }

    .lesson-code__body {
        padding: 12px;
    }

    .lesson-code__body pre {
        overflow-x: auto;
    }

    .course-card__title {
        font-size: 14px;
    }

    .course-card__desc {
        font-size: 12px;
    }

    /* Wiki pages */
    .wiki-hero__title {
        font-size: clamp(20px, 3.5vw, 26px);
    }

    .wiki-card__title {
        font-size: 13px;
    }

    .wiki-card__desc {
        font-size: 12px;
    }

    .wiki-featured__title {
        font-size: 1.15rem;
    }

    .wiki-featured__desc {
        font-size: 13px;
    }

}

/* ===== LESSON PAGES ===== */

/* --- Nav active link --- */
.nav__link--active {
    color: var(--text-primary) !important;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.08);
}

/* --- Breadcrumb --- */
.lesson-breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: calc(var(--nav-h) + 12px) 0 12px;
}

.lesson-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.lesson-breadcrumb a {
    color: var(--text-muted);
    transition: color 0.15s;
}

.lesson-breadcrumb a:hover {
    color: var(--accent);
}

.lesson-breadcrumb span {
    color: var(--text-primary);
    font-weight: 500;
}

.lesson-breadcrumb svg {
    opacity: 0.4;
    flex-shrink: 0;
}

/* --- Lesson view layout --- */
.lesson-view-wrap {
    background: #fff;
    min-height: 100vh;
}

.lesson-view-inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
    padding-top: 40px;
    padding-bottom: 80px;
}

/* --- Article wrap (share btn) --- */
.lesson-article-wrap {
    position: relative;
    min-width: 0;
}

/* --- Share button --- */
.lesson-share {
    position: absolute;
    top: 0;
    right: -20px;
    z-index: 10;
}

.lesson-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.lesson-share-btn:hover,
.lesson-share-btn[aria-expanded="true"] {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.lesson-share-panel {
    position: absolute;
    top: 48px;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.lesson-share.is-open .lesson-share-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lesson-share-panel__item {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.16s, box-shadow 0.16s, opacity 0.16s;
}

.lesson-share-panel__item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

.lesson-share-panel__item--facebook {
    background: #1877f2;
}

.lesson-share-panel__item--telegram {
    background: #2aabee;
}

.lesson-share-panel__item--linkedin {
    background: #0a66c2;
}

.lesson-share-panel__item--copy {
    background: #64748b;
}

.lesson-share-panel__status {
    position: absolute;
    top: 50%;
    right: 48px;
    min-width: max-content;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    background: var(--text-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 650;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(4px);
    transition: opacity 0.18s, transform 0.18s;
}

.lesson-share-panel__status.is-visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* --- Article content --- */
.lesson-article {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

.lesson-article__title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-right: 33px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    flex-wrap: wrap;
}

.lesson-article__tech-meta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.lesson-article__title-text {
    min-width: min(100%, 14ch);
    overflow-wrap: break-word;
}

.lesson-article__tech {
    display: inline-block;
    border-bottom: 1px solid var(--border);
    margin: 0 2px;
    white-space: nowrap;
}

.lesson-article__tech-icon {
    width: 40px;
    height: 40px;
    margin-right: 6px;
    background: transparent;
    border: 0;
    margin: 0;
    object-fit: contain;
}

.lesson-article p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-align: justify;
    font-size: 16px;
}

.lesson-article h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 16px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.lesson-article strong {
    color: var(--text-primary);
    font-weight: 700;
}

.lesson-article ul,
.lesson-article ol {
    padding-left: 40px;
    margin: 18px 0;
}

.lesson-article ul li,
.lesson-article ol li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.lesson-article img:not(.lesson-article__tech-icon) {
    margin: auto;
    max-width: 100%;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
}

.lesson-article iframe {
    max-width: 100%;
    max-height: 450px;
}

.lesson-article blockquote {
    border-left: 4px solid rgba(235, 222, 37, 0.9);
    background: rgba(235, 222, 37, 0.1);
    padding: 12px 20px;
    margin: 24px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.lesson-article blockquote p {
    margin: 0;
}

/* ===== STATIC INFO PAGES ===== */
.static-page-section {
    background: #fff;
    padding-top: 56px;
}

.static-page-article {
    max-width: 860px;
    margin: 0 auto;
    color: var(--text-primary);
}

.static-page-article::before {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-bottom: 28px;
    border-radius: 999px;
    background: var(--primary);
}

.static-page-article h2 {
    position: relative;
    margin: 34px 0 12px;
    padding: 0 0 0 18px;
    border-bottom: 0;
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: 0;
}

.static-page-article h2:first-of-type {
    margin-top: 0;
}

.static-page-article h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.28em;
    width: 4px;
    height: 1em;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.55);
}

.static-page-article p {
    max-width: 78ch;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.78;
    text-align: left;
}

.static-page-article p+h2 {
    margin-top: 38px;
}

.static-page-article a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 99, 235, 0.3);
}

.static-page-article a:hover {
    border-bottom-color: currentColor;
}

@media (max-width: 640px) {
    .static-page-section {
        padding-top: 36px;
    }

    .static-page-article::before {
        margin-bottom: 22px;
    }

    .static-page-article h2 {
        font-size: 18px;
        margin-top: 30px;
    }

    .static-page-article p {
        font-size: 15px;
        line-height: 1.72;
    }
}


.lesson-article table {
    border-collapse: collapse;
    margin: 1rem 0;
    width: 100%;
    border: 2px solid var(--border);
}

.lesson-article td,
.lesson-article th {
    border: 2px solid var(--border);
    padding: 8px 12px;
    min-width: 50px;
}

.lesson-article th {
    background-color: var(--bg-secondary);
    font-weight: 700;
}

/* Ensure table is visible in container */
.lesson-article tbody,
.lesson-article thead,
.lesson-article tr {
    display: table-row-group;
}

.lesson-article tr {
    display: table-row !important;
}

.lesson-article td,
.lesson-article th {
    display: table-cell !important;
}

.lesson-article p code,
.lesson-article li code {
    background: rgba(235, 222, 37, 0.1);
    color: rgb(207, 46, 46);
    letter-spacing: 1px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.lesson-article em {
    font-style: italic;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0 0.2em;
    border-radius: 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.lesson-article em:not(blockquote em) {
    background: linear-gradient(180deg, transparent 56%, rgba(255, 51, 0, 0.1) 56%);
}

.lesson-article pre {
    position: relative;
    background: #1e1e2eef;
    border-bottom-right-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
    padding: 36px 0 0;
    backdrop-filter: blur(21px);
    display: flex;
    margin-bottom: 24px;
}

.lesson-article pre code {
    background-color: transparent !important;
    padding: 0 !important;
    color: #cdd6f4;
    font-family: var(--font-mono);
    line-height: 1.7;
    font-size: 14px !important;
    padding: 0 24px 14px !important;
    overflow-x: scroll;
}

.lesson-article pre code::-webkit-scrollbar {
    height: 6px;
}

.lesson-article pre code::-webkit-scrollbar-track {
    background: transparent;
}

.lesson-article pre code::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.lesson-article pre code::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

.lesson-article pre .code-lang-label::before {
    content: 'uzbekdevs.uz';
    letter-spacing: 0.01em;
    font-weight: 100;
}

.lesson-article pre .code-lang-label {
    position: absolute;
    top: 0;
    right: 0;
    background: #13131f;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Definition box */
.lesson-definition {
    background: rgba(234, 179, 8, 0.09);
    border-left: 4px solid rgba(234, 179, 8, 0.6);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 20px 0;
    font-style: italic;
}

.lesson-definition strong {
    color: #92400e;
    font-style: normal;
}

/* Code block */
.lesson-code {
    background: #1e1e2e;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.lesson-code__body {
    padding: 20px 24px;
}

.lesson-code__body pre {
    margin: 0;
    overflow-x: auto;
}

.lesson-code__body code {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
    background: none;
    color: #cdd6f4;
    padding: 0;
    border-radius: 0;
}

/* Syntax colors */
.code-var {
    color: #cdd6f4;
}

.code-str {
    color: #a6e3a1;
}

.code-num {
    color: #fab387;
}

.code-fn {
    color: #89b4fa;
}

.code-op {
    color: #89dceb;
}

.code-comment {
    color: #6c7086;
    font-style: italic;
}

.code-kw {
    color: #cba6f7;
}

/* Output block */
.lesson-output {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #13131f;
}

.lesson-output__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    font-size: 12px;
    color: #6c7086;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lesson-output__head span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lesson-output__brand {
    font-family: var(--font-mono);
    font-size: 11px;
    opacity: 0.5;
}

.lesson-output pre {
    margin: 0;
    padding: 14px 24px;
}

.lesson-output code {
    font-family: var(--font-mono);
    font-size: 14px;
    color: #94e2d5;
    background: none;
    padding: 0;
    border-radius: 0;
}

/* Lesson list */
.lesson-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lesson-list li {
    font-size: 15px;
    color: var(--text-secondary);
    padding-left: 22px;
    position: relative;
    line-height: 1.6;
}

.lesson-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Prev / Next navigation */
.lesson-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.lesson-nav__btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
    color: inherit;
}

.lesson-nav__btn:hover {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.04);
    transform: translateY(-1px);
}

.lesson-nav__btn--next {
    justify-content: flex-end;
    text-align: right;
}

.lesson-nav__btn svg {
    flex-shrink: 0;
    color: var(--accent);
}

.lesson-nav__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.lesson-nav__title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* --- Lesson Sidebar --- */
.lesson-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - var(--nav-h) - 40px);
}

/* Course card in sidebar */
.lesson-course-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.lesson-course-card__icon {
    width: 72px;
    height: 72px;
    padding: 6px;
    border-radius: var(--radius-lg);
    display: grid;
    place-items: center;
    margin-bottom: 4px;
}

.lesson-course-card__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lesson-course-card__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.lesson-course-card__desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* TOC card */
.lesson-toc-card {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 5px;
}

.lesson-toc__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border);
}

.lesson-toc__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.lesson-toc__lang {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(37, 99, 235, 0.08);
    padding: 2px 8px;
    border-radius: 12px;
}

.lesson-toc {
    overflow-y: auto;
    flex: 1;
    padding: 6px 0;
}

.lesson-toc__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.lesson-toc__item:hover {
    background: var(--bg-base);
    color: var(--text-primary);
    border-left-color: var(--border-hover);
}

.lesson-toc__item--active {
    background: rgba(37, 99, 235, 0.06);
    color: var(--accent);
    font-weight: 600;
    border-left-color: var(--accent);
}

.lesson-toc__badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    font-family: var(--font-mono);
}

.lesson-toc__item--active .lesson-toc__badge {
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent);
}

/* ===== COURSE HERO (lesson.html) ===== */
.course-hero {
    padding: calc(var(--nav-h) + 48px) 0 56px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.course-hero__inner {
    position: relative;
}

.course-hero__content {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.course-hero__icon {
    width: 121px;
    height: auto;
    padding: 9px;
    border-radius: var(--radius-xl);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(55, 118, 171, 0.1);
}

.course-hero__icon-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.course-hero__info {
    flex: 1;
    min-width: 0;
}

.course-hero__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.course-hero__count {
    font-size: 13px;
    color: var(--text-muted);
}

.course-hero__title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 10px;
}

.course-hero__desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: 14px;
}

.course-hero__stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.course-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.course-stat svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.technology-detail-hero {
    background:
        radial-gradient(circle at 18% 42%, rgba(37, 99, 235, 0.05), transparent 28%),
        #fff;
}

.technology-detail-main h2, .technology-detail-main p {
    margin: 0;
}

.technology-hero__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 148px;
    height: 148px;
    border: 1px solid rgba(226, 232, 240, 0.78);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.98));
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.technology-detail-hero .course-hero__icon {
    width: 108px;
    height: 108px;
    padding: 10px;
    overflow: visible;
    box-shadow: none;
}

.technology-detail-hero .course-hero__icon-img {
    width: 100%;
    height: 100%;
    max-width: 92px;
    max-height: 92px;
    object-fit: contain;
}

.technology-detail-hero .course-hero__icon span {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 800;
}

.technology-hero__eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.technology-hero__eyebrow span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 6px 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.86);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.technology-hero__eyebrow span:first-child {
    border-color: rgba(37, 99, 235, 0.22);
    background: rgba(37, 99, 235, 0.07);
    color: var(--accent);
}

.technology-hero__categories,
.technology-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.technology-hero__categories {
    margin: 0 0 12px;
}

.technology-hero__categories span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 7px 10px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.05);
    color: var(--accent);
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
}

.technology-hero__stats .course-stat {
    min-height: 30px;
    padding: 7px 10px;
    border: 1px solid rgba(148, 163, 184, 0.17);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
}

.technology-detail-content {
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
}

.technology-detail-content h2:first-child {
    margin-top: 0;
}

.technology-detail-section {
    margin-top: 18px;
}

.technology-detail-edu-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.course-hero-education {
    width: min(100%, 280px);
    margin-left: auto;
    padding: 0;
}

.course-hero-education--empty {
    visibility: hidden;
    min-height: 1px;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.course-hero-education__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 800;
}

.course-hero-education__head small {
    padding: 4px 8px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
}

.course-hero-education__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course-hero-education__item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 7px 9px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    background: #fff;
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.course-hero-education__item:hover {
    border-color: rgba(148, 163, 184, 0.45);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.course-hero-education__logo {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 10px;
    background: #fff;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
}

.course-hero-education__logo img {
    width: 100%;
    height: 100%;
    padding: 3px;
    object-fit: contain;
}

.course-hero-education__body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.course-hero-education__body strong {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-hero-education__body em {
    width: fit-content;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 247, 237, 0.88);
    color: #92400e;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
}

.course-hero-education__arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    margin-right: 7px;
}

/* ===== LESSON LIST (lesson.html) ===== */

.lesson-list-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.lesson-chapter {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
}

.lesson-chapter__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.lesson-chapter__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lesson-chapter__title svg {
    color: var(--green);
    flex-shrink: 0;
}

.lesson-chapter__count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 12px;
}

.lesson-items {
    display: flex;
    flex-direction: column;
}

.lesson-item {
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.15s;
    text-decoration: none;
}

.lesson-item [itemprop="item"] {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 16px;
}

.lesson-item:last-child {
    border-bottom: none;
}

.lesson-item:hover {
    background: rgba(37, 99, 235, 0.03);
    color: var(--text-primary);
}

.lesson-item__num {
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-muted);
    min-width: 24px;
}

.lesson-item__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lesson-item__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.lesson-item__meta {
    font-size: 12px;
    color: var(--text-muted);
}

.lesson-item__status {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.lesson-item__status--done {
    background: rgba(22, 163, 74, 0.1);
    color: var(--green);
}

.lesson-item__status--current {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent);
}

.lesson-item--active .lesson-item__title {
    color: var(--text-primary);
}

.lesson-item--current {
    background: rgba(37, 99, 235, 0.04);
    border-left: 3px solid var(--accent);
}

.lesson-item--current .lesson-item__title {
    color: var(--accent);
    font-weight: 600;
}

/* Lesson sidebar */
.lesson-list-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.course-sidebar-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: grid;
    place-items: center;
    margin: 0 auto 8px;
}

.course-progress {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.course-progress__bar {
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.course-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    border-radius: 3px;
    transition: width 0.4s ease;
}

.course-progress__label {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

.sidebar-card__head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.other-courses {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.other-course-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.15s;
}

.other-course-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ===== WIKI PAGES ===== */

/* --- wiki.html hero --- */

.wiki-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(37, 99, 235, .08);
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 14px;
}

.wiki-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.wiki-hero__desc {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.wiki-hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.wiki-hero__stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.wiki-hero__stat strong {
    color: var(--text-primary);
}

/* --- wiki search --- */
.wiki-search {
    max-width: 520px;
    margin: 0 auto;
}

.wiki-search__wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.wiki-search__icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.wiki-search__input {
    width: 100%;
    padding: 14px 60px 14px 46px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 15px;
    background: var(--bg-card);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wiki-search__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.wiki-search__input::placeholder {
    color: var(--text-muted);
}

.wiki-search__kbd {
    position: absolute;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.wiki-search__kbd kbd {
    font-size: 11px;
    font-family: var(--font);
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 5px;
}

/* --- wiki filter bar --- */
.wiki-filter-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: var(--nav-h);
    z-index: 90;
}

.wiki-filter-bar__inner {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: none;
}

.wiki-filter-bar__inner::-webkit-scrollbar {
    display: none;
}

.wiki-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.wiki-filter-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.wiki-filter-btn--active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.wiki-filter-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
}

/* --- wiki layout --- */

.wiki-main {
    min-width: 0;
}

.wiki-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: calc(var(--nav-h) + 60px);
}

/* --- wiki featured article --- */
.wiki-featured {
    display: block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    color: #fff;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}

.wiki-featured::before {
    content: '';
    position: absolute;
    right: -30px;
    top: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}

.wiki-featured__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .18);
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 14px;
}

.wiki-featured__category {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.75;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wiki-featured__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
}

.wiki-featured__desc {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 20px;
}

.wiki-featured__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.wiki-featured__author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.wiki-featured__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.wiki-featured__meta {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

/* --- wiki section --- */
.wiki-section {
    margin-bottom: 40px;
}

.wiki-empty {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
}

.wiki-empty h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.wiki-empty p {
    color: var(--text-secondary);
    font-size: 14px;
}

.wiki-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.wiki-section__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wiki-section__title-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.wiki-section__link {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

.wiki-section__link:hover {
    text-decoration: underline;
}

/* --- wiki grid & cards --- */
.wiki-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.wiki-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s, transform 0.2s;
    color: inherit;
}

.wiki-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.wiki-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wiki-card__time {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.wiki-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    flex: 1;
}

.wiki-card__desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wiki-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* --- wiki author (shared) --- */
.wiki-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wiki-author__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wiki-author__name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.wiki-author__info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wiki-author__role {
    font-size: 11px;
    color: var(--text-muted);
}

/* --- wiki sidebar: popular & tags --- */
.wiki-popular {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.wiki-sidebar__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.wiki-popular__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 8px;
    border-radius: var(--radius-md);
    transition: background 0.15s;
    color: inherit;
}

.wiki-popular__item:hover {
    background: var(--bg-secondary);
}

.wiki-popular__num {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent);
    min-width: 18px;
    line-height: 1.4;
}

.wiki-popular__body {
    flex: 1;
    min-width: 0;
}

.wiki-popular__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wiki-contribute {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
}

.wiki-contribute__icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #16a34a, #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #fff;
}

.wiki-contribute h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.wiki-contribute p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

/* --- wiki-view.html specific --- */
.wiki-view-wrap {
    background: #fff;
    min-height: 100vh;
}

.wiki-view-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
    padding: 40px 24px 72px;
    align-items: start;
}

.wiki-article-wrap {
    min-width: 0;
    max-width: 860px;
}

.wiki-article-header {
    position: relative;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.wiki-article {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.wiki-article-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.wiki-article__title {
    max-width: 820px;
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.12;
}

.wiki-article p {
    color: var(--text-secondary);
    text-align: left;
}

.wiki-article h2 {
    margin-top: 40px;
    scroll-margin-top: calc(var(--nav-h) + 28px);
}

.wiki-article h3 {
    scroll-margin-top: calc(var(--nav-h) + 28px);
}

.wiki-article>h2:first-of-type {
    margin-top: 30px;
}

.wiki-article-meta--top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.wiki-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 650;
}

.wiki-meta-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #111827;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.wiki-toc-card {
    max-height: min(520px, calc(100vh - var(--nav-h) - 48px));
    padding: 0;
    overflow: hidden;
    border-color: rgba(37, 99, 235, 0.1);
}

.wiki-toc {
    max-height: 420px;
    padding: 8px 0;
}

.wiki-toc__item {
    align-items: flex-start;
    gap: 9px;
    padding: 9px 14px;
    line-height: 1.35;
    border-left-width: 3px;
    font-size: 12.5px;
}

.wiki-toc__item--sub {
    padding-left: 36px;
}

.wiki-toc__item--sub .lesson-toc__badge {
    opacity: 0.72;
}

.wiki-toc__item .lesson-toc__badge {
    min-width: 24px;
    text-align: center;
}

.wiki-toc__item.lesson-toc__item--active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.09), rgba(37, 99, 235, 0.02));
}

.wiki-popular-card {
    padding: 16px;
}

.wiki-popular-card .courses-trending-item {
    padding: 10px 8px;
}

.wiki-popular-card .courses-trending-item__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.08);
}

/* --- HTTP method badges --- */
.wiki-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}

.wiki-method {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.wiki-method__badge {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    min-width: 58px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.wiki-method--get .wiki-method__badge {
    background: #dcfce7;
    color: #16a34a;
}

.wiki-method--post .wiki-method__badge {
    background: #dbeafe;
    color: #2563eb;
}

.wiki-method--put .wiki-method__badge {
    background: #fef9c3;
    color: #ca8a04;
}

.wiki-method--patch .wiki-method__badge {
    background: #ffedd5;
    color: #ea580c;
}

.wiki-method--delete .wiki-method__badge {
    background: #fee2e2;
    color: #dc2626;
}

.wiki-method__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wiki-method__body strong {
    font-size: 13px;
    color: var(--text-primary);
}

.wiki-method__body span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* --- HTTP status code list --- */
.wiki-status-codes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 16px 0;
}

.wiki-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
}

.wiki-status__code {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-weight: 700;
    font-size: 13px;
    min-width: 36px;
}

.wiki-status__label {
    color: var(--text-secondary);
}

.wiki-status--2xx {
    background: #f0fdf4;
}

.wiki-status--2xx .wiki-status__code {
    color: #16a34a;
}

.wiki-status--4xx {
    background: #fff7ed;
}

.wiki-status--4xx .wiki-status__code {
    color: #ea580c;
}

.wiki-status--5xx {
    background: #fef2f2;
}

.wiki-status--5xx .wiki-status__code {
    color: #dc2626;
}

/* --- related articles --- */
.wiki-related {
    margin-top: 40px;
    padding-top: 32px;
}

.wiki-related__title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.wiki-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.wiki-related__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.wiki-related__item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .07);
    transform: translateY(-1px);
}

.wiki-related__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}

/* ===== RESPONSIVE — WIKI ===== */
@media (max-width: 1024px) {

    .wiki-view-inner {
        grid-template-columns: 1fr;
    }

    .wiki-sidebar {
        position: static;
    }

    .wiki-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wiki-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {

    .page-card-grid,
    .edu-grid,
    .leaders-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .wiki-grid {
        grid-template-columns: 1fr;
    }

    .wiki-related__grid {
        grid-template-columns: 1fr;
    }

    .wiki-featured {
        padding: 22px;
    }

    .wiki-filter-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .wiki-methods {
        margin: 12px 0;
    }

    .wiki-method__badge {
        min-width: 50px;
        font-size: 10px;
    }

    .wiki-article-meta--top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .wiki-hero__title {
        font-size: clamp(20px, 3.5vw, 24px);
    }

    .wiki-filter-bar__inner {
        padding: 10px 0;
    }

    .wiki-featured {
        padding: 16px;
    }

    .wiki-featured__title {
        font-size: 1.1rem;
    }

    .wiki-card {
        padding: 14px;
    }

}

/* ===== CATALOG CARDS ===== */

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.course-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

.course-card > [itemprop="item"] {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.course-card--soon {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.92));
}

.course-card--soon:hover {
    transform: none;
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.06);
}

.course-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.course-card__icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: var(--radius-md) !important;
    font-size: 11px !important;
    flex-shrink: 0;
}

.course-card__icon-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.course-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
}

.course-card__body {
    flex: 1;
    padding-top: 7px;
}

.course-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.course-card__desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
}

.course-card__stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.course-card__stat {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}

.course-card__level {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.course-card__level--beginner {
    background: #dcfce7;
    color: #16a34a;
}

.course-card__level--intermediate {
    background: #dbeafe;
    color: #2563eb;
}

.course-card__level--advanced {
    background: #fce7f3;
    color: #db2777;
}

.course-coming-soon {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    background: #fef9c3;
    color: #a16207;
    display: flex;
    align-items: center;
}

.course-empty {
    grid-column: 1 / -1;
    padding: 24px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    border-radius: var(--radius-lg);
    background: rgba(248, 250, 252, 0.72);
}

.course-empty h3 {
    margin: 0 0 6px;
    color: var(--text-primary);
    font-size: 15px;
}

.course-empty p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
}

/* --- sidebar: progress card --- */
.courses-progress-card__head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.courses-progress-card__head svg {
    color: var(--accent);
}

.courses-progress-item__top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.courses-progress-item__icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 10px;
}

.courses-progress-item__body {
    flex: 1;
}

.courses-progress-item__name {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}

.courses-progress-item__meta {
    color: var(--text-muted);
    font-size: 11px;
}

.courses-progress-item__link {
    color: var(--accent);
    font-size: 11px;
    font-weight: 500;
}

.courses-progress-item__bar {
    margin-top: 8px;
}

.courses-progress-item__fill {
    width: 16%;
}

.courses-progress-card__empty {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* --- sidebar: stats grid --- */
.courses-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.courses-stat-box {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 10px;
    text-align: center;
}

.courses-stat-box__num {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
}

.courses-stat-box__label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- sidebar: trending --- */
.courses-trending-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-md);
    color: inherit;
    text-decoration: none;
    transition: background 0.15s;
}

.courses-trending-item:hover {
    background: var(--bg-secondary);
}

.courses-trending-item__num {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
    min-width: 20px;
}

.courses-trending-item__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.courses-trending-item__sub {
    font-size: 11px;
    color: var(--text-muted);
}

.educations {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.education-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.15s;
}

.education-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ===== RESPONSIVE — LESSONS ===== */
@media (max-width: 768px) {
    .course-hero__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .course-hero-education {
        width: 100%;
        margin-left: 0;
    }

    .course-hero__icon {
        width: 80px;
        height: 80px;
    }

    .technology-hero__media {
        width: 112px;
        height: 112px;
        border-radius: 22px;
    }

    .technology-detail-hero .course-hero__icon {
        width: 84px;
        height: 84px;
    }

    .lesson-list-sidebar {
        position: static;
    }

    .lesson-chapter {
        border-radius: var(--radius-md);
    }
}

@media (max-width: 640px) {
    .course-card {
        padding: 14px;
    }

    .course-card__title {
        font-size: 14px;
    }

    .course-card__desc {
        font-size: 11px;
    }

    .course-hero__title {
        font-size: clamp(26px, 4vw, 32px);
    }
}

@media (max-width: 480px) {
    .course-card {
        padding: 12px;
        gap: 8px;
    }

    .course-card__title {
        font-size: 13px;
    }

    .course-card__desc {
        font-size: 11px;
    }

    .course-card__stat {
        font-size: 10px;
    }
}

/* ===== RESPONSIVE — FINAL OVERRIDES ===== */
@media (max-width: 1024px) {

    .events-page .page-layout,
    .lesson-view-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .events-page .page-sidebar,
    .lesson-sidebar {
        position: static;
        top: auto;
    }

    .lesson-share {
        position: static;
        display: inline-block;
        margin-bottom: 16px;
    }

    .lesson-share-btn {
        width: 40px;
        height: 40px;
    }

    .lesson-share-panel {
        top: 0;
        right: auto;
        left: 48px;
        flex-direction: row;
        border-radius: 999px;
        transform: translateX(-6px);
    }

    .lesson-share.is-open .lesson-share-panel {
        transform: translateX(0);
    }

    .lesson-share-panel__status {
        top: 48px;
        right: auto;
        left: 0;
        transform: translateY(4px);
    }

    .lesson-share-panel__status.is-visible {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {

    .event-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .event-card__date {
        width: 100%;
        min-height: 64px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
        padding: 12px 14px;
        box-sizing: border-box;
    }

    .event-card__date small,
    .event-card__date em {
        margin-top: 0;
    }

    .event-card__actions {
        width: 100%;
        min-width: 0;
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .event-card__actions .btn,
    .event-card__details {
        flex: 1 1 150px;
        justify-content: center;
    }

    .lesson-view-inner {
        padding-top: 28px;
        padding-bottom: 56px;
    }

    .lesson-article {
        min-width: 0;
        overflow-wrap: break-word;
    }

    .lesson-article p {
        text-align: left;
    }

    .lesson-article pre {
        max-width: 100%;
        overflow: hidden;
    }

    .lesson-article pre code {
        display: block;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .event-card {
        gap: 14px;
        padding: 16px;
    }

    .lesson-article__title {
        font-size: 24px;
    }

    .lesson-article h2 {
        font-size: 20px;
    }

    .lesson-article ul,
    .lesson-article ol {
        padding-left: 24px;
    }

    .lesson-article blockquote {
        padding: 12px 14px;
    }
}

/* ===== MOBILE POLISH OVERRIDES ===== */
@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        overflow-x: clip;
    }

    .container {
        padding-inline: 16px;
    }

    .nav {
        background: rgba(248, 250, 252, 0.96);
        border-bottom-color: var(--border);
    }

    .nav__inner {
        gap: 12px;
    }

    .nav__actions {
        gap: 8px;
    }

    .nav__burger {
        background: rgba(255, 255, 255, 0.72);
    }

    .nav__links {
        min-height: auto;
        max-height: calc(100dvh - var(--nav-h));
        padding: 8px 16px 96px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
    }

    .nav__links a {
        min-height: 48px;
        display: flex;
        align-items: center;
        border-bottom: 0;
        border-radius: 10px;
        font-weight: 650;
    }

    .nav--menu-open .nav__actions .btns {
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
        left: 16px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .nav--menu-open .nav__actions .btns .btn {
        width: 100%;
        justify-content: center;
        padding-inline: 12px;
    }

    .page-hero__title,
    .hero__title,
    .meetup-hero__title,
    .course-hero__title,
    .wiki-hero__title,
    .lesson-article__title {
        letter-spacing: 0;
        overflow-wrap: anywhere;
    }

    .page-hero__desc,
    .hero__desc,
    .meetup-hero__desc,
    .course-hero__desc,
    .wiki-hero__desc {
        max-width: none;
    }

    .page-hero__pills,
    .technology-filter-row,
    .event-filter-row,
    .wiki-filter-row {
        flex-wrap: nowrap;
        margin-inline: -16px;
        padding-inline: 16px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .page-hero__pills::-webkit-scrollbar,
    .technology-filter-row::-webkit-scrollbar,
    .event-filter-row::-webkit-scrollbar,
    .wiki-filter-row::-webkit-scrollbar {
        display: none;
    }

    .page-pill,
    .technology-filter-btn,
    .event-filter-btn,
    .wiki-filter-btn {
        flex: 0 0 auto;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--nav-h) + 34px) 0 48px;
    }

    .hero__inner {
        padding-inline: 0;
    }

    .hero__badge {
        max-width: 100%;
        margin-bottom: 20px;
        line-height: 1.35;
    }

    .hero__desc {
        margin-bottom: 24px;
    }

    .hero__cta {
        margin-bottom: 28px;
    }

    .hero__stats {
        gap: 10px;
    }

    .stat {
        min-height: 76px;
        justify-content: center;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.74);
    }

    .card,
    .event-card,
    .edu-card,
    .leader-card,
    .wiki-card,
    .course-card,
    .wiki-home-card {
        border-radius: 14px;
    }

    .card--row__right {
        flex-direction: column;
        align-items: stretch;
    }

    .card--row__right .card__meta,
    .card--row__right .card__actions,
    .card--row__right .btn {
        width: 100%;
    }

    .card__meta,
    .meetup-notif__meta,
    .event-meta-row {
        align-items: flex-start;
    }

    .meta__item,
    .event-meta-row span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .leader-card__head {
        align-items: flex-start;
    }

    .leader-card__photo-wrap,
    .leader-card__photo {
        width: 88px;
        height: 88px;
        border-radius: 18px;
    }

    .lesson-breadcrumb .container {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .lesson-breadcrumb .container::-webkit-scrollbar {
        display: none;
    }

    .lesson-article__title {
        padding-right: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        align-items: start;
        font-size: clamp(22px, 6.4vw, 28px);
        line-height: 1.18;
    }

    .lesson-article__tech-meta {
        width: fit-content;
        max-width: 100%;
        padding: 4px 9px 4px 4px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--bg-secondary);
    }

    .lesson-article__tech-icon {
        width: 32px;
        height: 32px;
    }

    .lesson-article__tech {
        border-bottom: 0;
        font-size: 13px;
        line-height: 1;
    }

    .lesson-article__title-text {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .lesson-article iframe,
    .wiki-article iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .lesson-article table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .lesson-code__body,
    .lesson-article pre,
    .wiki-article pre {
        overflow-x: auto;
    }
}

@media (max-width: 640px) {
    .container {
        padding-inline: 14px;
    }

    .page-hero {
        padding: calc(var(--nav-h) + 24px) 0 34px;
    }

    .page-section {
        padding: 28px 0 48px;
    }

    .page-hero__chip,
    .hero__badge {
        font-size: 12px;
    }

    .page-hero__title {
        font-size: clamp(30px, 9vw, 42px);
        line-height: 1.08;
    }

    .page-search__input {
        padding-right: 16px;
    }

    .page-search__kbd,
    .wiki-search__kbd {
        display: none;
    }

    .pagination__controls {
        width: 100%;
        border-radius: 16px;
    }

    .pagination__pages {
        min-width: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .pagination__pages::-webkit-scrollbar {
        display: none;
    }

    .pagination__btn,
    .pagination__page,
    .pagination__ellipsis {
        flex: 0 0 34px;
    }

    .section__head .btn,
    .event-card__actions .btn,
    .event-card__details,
    .event-detail-actions .btn {
        width: 100%;
    }

    .event-card__date span {
        font-size: 24px;
    }

    .event-detail-actions {
        flex-direction: column;
    }

    .oneclock-panel__btn {
        min-height: 44px;
    }

    .leader-card {
        min-height: 0;
    }

    .page-card-grid,
    .edu-grid,
    .leaders-grid,
    .wiki-home-grid,
    .community-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .leader-card__links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding-inline: 12px;
    }

    .nav__logo-img {
        max-width: 150px;
    }

    .nav__links {
        padding-inline: 12px;
    }

    .nav--menu-open .nav__actions .btns {
        grid-template-columns: 1fr;
    }

    .nav--menu-open .nav__actions .btns .btn {
        min-height: 44px;
    }

    .hero {
        padding: calc(var(--nav-h) + 26px) 0 36px;
    }

    .hero__title {
        font-size: clamp(28px, 10vw, 38px);
        line-height: 1.08;
    }

    .hero__stats {
        gap: 8px;
    }

    .stat {
        min-height: 70px;
        padding: 10px 8px;
    }

    .section__head {
        gap: 10px;
    }

    .page-hero__pills,
    .technology-filter-row,
    .event-filter-row,
    .wiki-filter-row {
        margin-inline: -12px;
        padding-inline: 12px;
    }

    .edu-card__content,
    .leader-card,
    .event-card {
        padding: 14px;
    }

    .edu-card__top,
    .leader-card__head {
        gap: 12px;
    }

    .edu-card__logo-wrap {
        width: 52px;
        height: 52px;
    }

    .leader-card__photo-wrap,
    .leader-card__photo {
        width: 76px;
        height: 76px;
    }

    .leader-card__company {
        white-space: normal;
    }

    .lesson-view-inner {
        padding-top: 20px;
        padding-bottom: 40px;
    }
}
