/* =========================
   RESET & BASE
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    color: #000;
    background: #fff;
    line-height: 1.6;
}

a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================
   LAYOUT
========================= */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 16px;
    margin: 0 auto;
}

main {
    padding: 32px 0;
}

/* =========================
   HEADER / MENU
========================= */
.site-header {
    border-bottom: 1px solid #000;
    position: relative;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    border: none;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    border: none;
    font-weight: 500;
}

/* Mobile toggle */
#nav-toggle {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #000;
}

/* =========================
   TABLE (DESKTOP)
========================= */
.updates-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.updates-table thead {
    border-bottom: 2px solid #000;
}

.updates-table th,
.updates-table td {
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

.updates-table tbody tr {
    border-bottom: 1px solid #ddd;
}

.update-title a {
    font-weight: 600;
    border: none;
}

/* =========================
   ARTICLE PAGE
========================= */
.article-header {
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 28px;
    margin: 0 0 10px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #333;
}

.article-content {
    font-size: 15px;
}

.article-content h2,
.article-content h3 {
    margin-top: 24px;
}

.article-content p {
    margin: 12px 0;
}

.article-content ul {
    padding-left: 20px;
}

/* =========================
   404 PAGE
========================= */
.error-page {
    text-align: center;
}

.error-content h1 {
    font-size: 28px;
    margin-bottom: 0;
}

.error-content p {
    font-size: 18px;
    margin: 8px 0 24px;
}

.back-home {
    font-weight: 600;
}

.latest-updates {
    margin-top: 48px;
    text-align: left;
}

.latest-updates ul {
    list-style: none;
    padding: 0;
}

.latest-updates li {
    margin-bottom: 8px;
}

/* =========================
   FOOTER
========================= */
.footer {
    border-top: 1px solid #000;
    padding: 20px 0;
    font-size: 14px;
}

.footer-links {
    margin-top: 6px;
}

.footer-links a {
    margin-right: 16px;
    border: none;
}

/* =========================
   RESPONSIVE (MOBILE)
========================= */
@media (max-width: 768px) {

    /* Menu */
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #000;
        display: none;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-top: 1px solid #ddd;
    }

    .main-nav a {
        display: block;
        padding: 12px 16px;
    }

    #nav-toggle:checked + .nav-toggle + .main-nav {
        display: block;
    }

    /* ===== TABLE → CARDS ===== */

    .updates-table thead {
        display: none;
    }

    .updates-table table,
    .updates-table tbody,
    .updates-table tr {
        display: block;
        width: 100%;
    }

    .updates-table tr {
        border: 1px solid #000;
        margin-bottom: 16px;
        padding: 12px;
    }

    .updates-table td {
        display: block;
        padding: 4px 0;
        font-size: 14px;
    }

    .updates-table td::before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        min-width: 90px;
    }

    .article-header h1 {
        font-size: 24px;
    }
}

.acf-links {
    display: flex;        /* ссылки в один ряд */
    gap: 8px;             /* расстояние между ссылками */
    flex-wrap: wrap;      /* если не влезут, перенесутся на следующую строку */
}

.acf-links a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #000; /* черная рамка */
    color: #000;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.acf-links a:hover {
    background: #000;
    color: #fff;
}


