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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fef9f0;
    color: #333;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #ff9a56, #ff6b6b);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-cat {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.5);
    margin-bottom: 1rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

nav {
    background: #fff;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    display: inline-block;
    margin: 0.25rem 0.4rem;
    padding: 0.4rem 0.9rem;
    background: #ff9a56;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

nav a:hover, nav a.active {
    background: #ff6b6b;
}

.gallery {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery .card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.gallery .card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery .card .caption {
    padding: 0.8rem 1rem;
    text-align: center;
    font-size: 0.95rem;
    color: #666;
}

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

.page-grid {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: center;
}

.page-grid h2 {
    margin-bottom: 1.5rem;
    color: #ff6b6b;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #999;
    font-size: 0.85rem;
    margin-top: 2rem;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.popup-overlay.active {
    opacity: 1;
}

.popup-content {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1.5rem;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
    transition: background 0.2s;
    padding: 0;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.popup-content img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    display: block;
}

.popup-text {
    padding: 1.2rem 1.5rem 1.5rem;
}

.popup-text h3 {
    color: #ff6b6b;
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.popup-text p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}
