:root {
    --blue: #1594E8;
    --green: #C8D91B;
    --yellow: #FFC928;
    --navy: #17243B;
    --bg: #F8F9FB;
    --gray: #E6EAF0;
    --dark: #10131A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
}

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

/* Navbar */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(23, 36, 59, 0.92);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.navbar .brand { font-weight: 800; font-size: 20px; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; }
.navbar .brand img { height: 30px; width: auto; }
.navbar .brand span { color: var(--green); }
.navbar nav { display: flex; gap: 8px; align-items: center; }
.navbar nav a {
    padding: 8px 16px; border-radius: 18px;
    font-weight: 600; font-size: 14px;
    transition: background .2s, color .2s;
}
.navbar nav a:hover { background: rgba(255,255,255,.12); }
.navbar nav a.btn-admin {
    background: var(--green); color: var(--navy);
    font-weight: 700;
}
.navbar nav a.btn-admin:hover { background: var(--yellow); }
.navbar .burger { display: none; cursor: pointer; font-size: 24px; }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1d3357 55%, #27588f 100%);
    color: #fff;
    padding: 96px 24px 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -1.5px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p.sub { max-width: 640px; margin: 20px auto 0; color: #cbd6e5; font-size: 18px; }
.hero .cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-block; padding: 14px 30px; border-radius: 18px;
    font-weight: 700; font-size: 16px; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(21,148,232,.4); }
.btn-outline { border: 2px solid rgba(255,255,255,.4); color: #fff; }
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }

/* Sections */
.section { padding: 72px 24px; }
.container { max-width: 1120px; margin: 0 auto; }
.section h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.section .lead { color: #556; max-width: 620px; margin-bottom: 40px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature {
    background: #fff; border: 1px solid var(--gray); border-radius: 20px;
    padding: 28px; box-shadow: 0 2px 10px rgba(23,36,59,.04);
    transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(23,36,59,.1); }
.feature .ico {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center; font-size: 24px; margin-bottom: 16px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: #667; font-size: 15px; }

/* Categories */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
    background: #fff; border: 1px solid var(--gray); border-radius: 20px;
    padding: 8px 18px; font-weight: 600; font-size: 14px; color: #445;
    transition: all .15s;
}
.chip:hover, .chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Grid (masonry) */
.cat-block { margin-bottom: 40px; }
.cat-title {
    font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 16px;
    display: inline-block; padding: 6px 16px; border-radius: 14px;
    background: #fff; border: 1px solid var(--gray);
}
.grid { columns: 4 250px; column-gap: 16px; }
.card {
    display: block; border-radius: 20px; overflow: hidden; position: relative;
    background: var(--gray); margin-bottom: 16px; break-inside: avoid;
    box-shadow: 0 2px 10px rgba(23,36,59,.06);
    transition: transform .2s, box-shadow .2s;
    cursor: zoom-in;
}
.card img { width: 100%; height: auto; display: block; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(23,36,59,.14); }
.card .tag {
    position: absolute; top: 10px; left: 10px;
    background: rgba(23,36,59,.75); color: #fff;
    font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 12px;
}
.card .likes {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(255,255,255,.9); color: #e0245e;
    font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 12px;
    display: flex; align-items: center; gap: 4px;
}

/* Modal */
.modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 300;
    background: rgba(16,19,26,.92);
    padding: 20px; overflow: auto;
    align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: #fff; border-radius: 24px; overflow: hidden;
    max-width: 1000px; width: 100%; position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.modal-box img.modal-img { width: 100%; height: auto; display: block; background: #eee; }
.modal-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px; border-bottom: 1px solid var(--gray);
}
.modal-head .m-title { font-weight: 700; color: var(--navy); font-size: 15px; word-break: break-all; }
.modal-head .m-tag {
    background: var(--navy); color: #fff; font-size: 12px; font-weight: 700;
    padding: 4px 12px; border-radius: 14px; white-space: nowrap;
}
.modal-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px; border-top: 1px solid var(--gray);
}
.modal-foot .m-likes { color: #e0245e; font-weight: 700; }
.modal-foot .m-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-like {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 22px; border-radius: 18px; border: 2px solid var(--gray);
    background: #fff; color: #e0245e; font-weight: 800; font-size: 15px; font-family: inherit;
    cursor: pointer; transition: all .15s;
}
.btn-like:hover { border-color: #e0245e; }
.btn-like.liked { background: #e0245e; border-color: #e0245e; color: #fff; box-shadow: 0 8px 24px rgba(224,36,94,.35); }
.modal-close {
    position: absolute; top: 10px; right: 10px; z-index: 5;
    width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,.9); color: var(--dark); font-size: 18px; line-height: 1;
}
.modal-close:hover { background: var(--yellow); }
@media (max-width: 640px) {
    .grid { columns: 2 150px; }
}

/* Footer */
.footer { background: var(--navy); color: #b7c2d4; padding: 40px 24px; text-align: center; font-size: 14px; }
.footer strong { color: #fff; }

/* Responsive */
@media (max-width: 768px) {
    .navbar nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 16px; }
    .navbar nav.open { display: flex; }
    .navbar .burger { display: block; }
    .hero { padding: 64px 16px 90px; }
}
