:root {
    /* Color Palette - kept exactly as you requested */
    --bg-color: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --rose-start: #FF0844;
    --rose-end: #FFB199;
    --maroon: #3A001E;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
}

/* ==================== TOP NAVIGATION ==================== */
matek-menu {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.97);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 14px 0;
}

.nav-menu {
    width: 100%;
    max-width: 920px;
    padding: 0 20px;
    box-sizing: border-box;
    margin: 0 auto;
}

.nav-menu ul {
    list-style: none;
    padding: 6px 12px;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    background: #ffffff;
    border-radius: 9999px;
    box-shadow: 0 4px 16px -6px rgba(0, 0, 0, 0.1),
                0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 11px 26px;
    border-radius: 9999px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    letter-spacing: 0.3px;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-start) 0%, var(--rose-end) 100%);
    box-shadow: 0 6px 16px rgba(255, 8, 68, 0.22);
    transform: translateY(-1px);
}

/* ==================== LOGO + HEADER ==================== */
.logo-container {
    margin-top: 72px;
    margin-bottom: 24px;
}

.logo {
    width: 138px;
    height: 138px;
    display: block;
    margin: 0 auto;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover {
    transform: scale(1.07) rotate(6deg);
}

h1 {
    font-size: 2.85rem;
    margin: 12px 0 8px 0;
    letter-spacing: -0.5px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-dark) 40%, var(--maroon) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.22rem;
    margin-bottom: 52px;
    font-weight: 500;
    max-width: 620px;
}

/* ==================== REUSABLE MOSAIC GRID ==================== */
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 26px;
    width: 100%;
    max-width: 1080px;
    padding: 0 24px;
    box-sizing: border-box;
    margin-bottom: 80px;
}

.mosaic-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 32px 26px;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mosaic-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, var(--rose-start) 0%, var(--rose-end) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mosaic-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 32px -10px rgba(255, 8, 68, 0.18);
    border-color: #fed7d7;
}

.mosaic-item:hover::before {
    opacity: 1;
}

.mosaic-item h2 {
    font-size: 1.42rem;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    font-weight: 700;
}

.mosaic-item p {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.55;
    margin: 0;
    flex-grow: 1;
}
