﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f6f8fb;
    color: #1f2937;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

img,
video {
    max-width: 100%;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
}

.header-container {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 1.55rem;
    font-weight: 700;
    color: #0f4c81;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

    .nav-links a {
        font-size: 14px;
        font-weight: 500;
        color: #334155;
        transition: color 0.2s ease;
    }

        .nav-links a:hover,
        .nav-links a.active {
            color: #0f4c81;
        }

.menu-btn {
    display: none;
    width: 30px;
    height: 24px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}

    .menu-btn span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background: #0f4c81;
        border-radius: 4px;
        transition: 0.3s ease;
    }

        .menu-btn span:nth-child(1) {
            top: 0;
        }

        .menu-btn span:nth-child(2) {
            top: 10px;
        }

        .menu-btn span:nth-child(3) {
            top: 20px;
        }

    .menu-btn.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 10px;
    }

    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 10px;
    }

/* Hero */
.hero-section {
    padding: 42px 0 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 60%, #f0fdfa 100%);
    text-align: center;
}

.badge,
.subtitle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #dbeafe;
    color: #0f4c81;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

.hero-content h1 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: 10px;
}

.hero-content p {
    max-width: 680px;
    margin: 0 auto;
    font-size: 14px;
    color: #64748b;
}

/* Media */
.media-section {
    padding: 28px 0 54px;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 28px;
}

    .section-header h2 {
        font-size: clamp(1.45rem, 2.5vw, 2rem);
        color: #0f172a;
        margin-bottom: 8px;
    }

    .section-header p {
        font-size: 14px;
        color: #64748b;
    }

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 18px;
    align-items: start;
}

.media-card {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .media-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
        border-color: #d8e4f2;
    }

.media-card__media {
    width: 100%;
    height: 190px;
    background: #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-element {
    width: 100%;
    height: 100%;
    display: block;
}

.media-card__media img.media-element {
    object-fit: cover;
}

.media-card__media video.media-element,
.media-video {
    object-fit: cover;
    background: #000;
}

.media-card__body {
    padding: 14px;
}

.media-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.media-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.media-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2855c5;
    font-size: 11px;
    font-weight: 600;
}

.media-description {
    font-size: 13px;
    line-height: 1.55;
    color: #667085;
    margin-bottom: 12px;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.media-btn {
    min-height: 36px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-align: center;
}

.media-btn--secondary {
    background: #f8fbff;
    color: #0f4c81;
    border-color: #d8e7f7;
}

    .media-btn--secondary:hover {
        background: #edf5ff;
    }

.media-btn--primary {
    background: #0f4c81;
    color: #ffffff;
}

    .media-btn--primary:hover {
        background: #0c3d67;
    }

.media-btn--disabled {
    background: #eef2f7;
    color: #98a2b3;
    pointer-events: none;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.media-fallback {
    width: 100%;
    height: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-align: center;
    gap: 8px;
}

    .media-fallback i {
        font-size: 26px;
        color: #60a5fa;
    }

.empty-state {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 34px 20px;
    text-align: center;
    color: #64748b;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

    .empty-state i {
        font-size: 2rem;
        color: #0f4c81;
        margin-bottom: 12px;
    }

    .empty-state h3 {
        margin-bottom: 8px;
        color: #0f172a;
        font-size: 18px;
    }

/* Footer */
.site-footer {
    background: #0f172a;
    color: #e2e8f0;
    margin-top: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
    gap: 24px;
    padding: 42px 0 22px;
}

.site-footer h3,
.site-footer h4 {
    color: #ffffff;
    margin-bottom: 12px;
}

.site-footer p,
.footer-links li,
.footer-contact li {
    font-size: 14px;
    color: #cbd5e1;
}

.footer-links,
.footer-contact {
    list-style: none;
}

    .footer-links li,
    .footer-contact li {
        margin-bottom: 8px;
    }

    .footer-contact i {
        margin-right: 8px;
    }

.social-icons a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    color: #fff;
    transition: background 0.2s ease;
}

    .social-icons a:hover {
        background: #0f4c81;
    }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* Floating */
.scroll-top,
.whatsapp-button {
    position: fixed;
    right: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.scroll-top {
    bottom: 78px;
    background: #0f4c81;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
}

    .scroll-top.show {
        opacity: 1;
        visibility: visible;
    }

.whatsapp-button {
    bottom: 18px;
    background: #25d366;
    color: #fff;
    font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .media-grid {
        grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 74px;
        right: -100%;
        width: min(82vw, 340px);
        height: calc(100vh - 74px);
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
        transition: 0.35s ease;
    }

        .nav-links.active {
            right: 0;
        }

    .media-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .media-card__media {
        height: 210px;
    }

    .media-actions {
        grid-template-columns: 1fr;
    }

    .scroll-top,
    .whatsapp-button {
        right: 14px;
    }
}
