* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
    line-height: 1.6;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.header {
    background: #111827;
    color: white;
    padding: 20px 0;
}

.header a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.hero {
    background: white;
    padding: 50px;
    margin: 30px 0;
    border-radius: 16px;
}

.card {
    background: white;
    padding: 24px;
    margin-bottom: 18px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.card h2,
.card h3 {
    margin-top: 0;
}

.btn {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
}

.btn-secondary {
    background: #374151;
}

.footer {
    margin-top: 40px;
    padding: 25px 0;
    text-align: center;
    color: #6b7280;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    max-height: 44px;
    width: auto;
}

.hero-modern {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: white;
    padding: 70px 50px;
}

.hero-modern h1 {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero-modern p {
    max-width: 680px;
    font-size: 18px;
    color: #d1d5db;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 45px 0 20px;
}

.section-head h2 {
    margin: 0;
}

.section-head p {
    margin: 6px 0 0;
    color: #6b7280;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.muted {
    color: #6b7280;
    font-size: 14px;
}

.card a {
    color: inherit;
}

@media (max-width: 700px) {
    .hero-modern {
        padding: 45px 25px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

.search-card {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 30px;
}

.search-card input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 16px;
}

@media (max-width: 700px) {
    .search-card {
        flex-direction: column;
        align-items: stretch;
    }
}

.article-page {
    max-width: 860px;
    margin: 40px auto;
}

.article-header {
    margin: 30px 0;
}

.article-header h1 {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    margin: 10px 0 0;
}

.article-content {
    font-size: 18px;
    line-height: 1.75;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 24px 0;
}

.back-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.certificate-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.card h2 {
    margin-top: 0;
}

.card {
    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 30px rgba(0,0,0,0.10);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255,255,255,0.95);

    backdrop-filter: blur(10px);

    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    display: flex;

    justify-content: space-between;

    align-items: center;

    min-height: 78px;
}

.logo {
    display: flex;

    align-items: center;

    gap: 12px;

    text-decoration: none;

    color: #111827;

    font-size: 22px;

    font-weight: 700;
}

.logo img {
    height: 48px;

    width: auto;

    display: block;
}

.main-nav {
    display: flex;

    align-items: center;

    gap: 28px;
}

.main-nav a {
    text-decoration: none;

    color: #374151;

    font-weight: 500;

    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #2563eb;
}

.admin-link {
    background: #2563eb;

    color: white !important;

    padding: 10px 18px;

    border-radius: 10px;

    transition: background 0.2s ease;
}

.admin-link:hover {
    background: #1d4ed8;
}

@media (max-width: 768px) {

    .header-inner {
        flex-direction: column;

        gap: 16px;

        padding: 16px 0;
    }

    .main-nav {
        flex-wrap: wrap;

        justify-content: center;

        gap: 14px;
    }

    .logo {
        justify-content: center;
    }
}

.site-footer {
    margin-top: 80px;

    background: #111827;

    color: #d1d5db;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr;

    gap: 40px;

    padding: 60px 0;
}

.site-footer h3,
.site-footer h4 {
    color: white;

    margin-top: 0;
}

.footer-description {
    line-height: 1.7;

    max-width: 500px;
}

.footer-nav {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.footer-nav a {
    color: #d1d5db;

    text-decoration: none;
}

.footer-nav a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;

    padding: 20px;

    border-top: 1px solid rgba(255,255,255,0.1);

    color: #9ca3af;
}

@media (max-width: 768px) {

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

}
.card-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 18px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-weight: 600;
}

.lang-switch a {
    color: #6b7280;
}

.lang-switch a.active {
    color: #2563eb;
}