/**
 * SMM NND — сторінка навчально-наукової дільниці «Деснянка».
 */

body.page-id-2352 .col-lg-8.offset-lg-2 {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
    margin-left: 0;
}

.smm-nnd {
    --nnd-green: #25603c;
    --nnd-dark: #0f2912;
    --nnd-muted: #5f6f66;
    --nnd-line: rgba(15, 41, 18, 0.12);
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px 56px;
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #16241b;
    text-align: left;
}

.smm-nnd *,
.smm-nnd *::before,
.smm-nnd *::after {
    box-sizing: border-box;
}

.smm-nnd__hero {
    margin: 0 -24px 30px;
    padding: 44px 40px 36px;
    border-radius: 22px;
    background:
        radial-gradient(900px 320px at 8% -30%, rgba(71, 143, 41, 0.22), transparent 70%),
        linear-gradient(160deg, #12301c 0%, #25603c 62%, #2f7147 100%);
    color: #fff;
}

.smm-nnd__eyebrow {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.smm-nnd__title {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.smm-nnd__lead {
    margin: 0;
    max-width: 620px;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
}

.smm-nnd__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.smm-nnd__stats li {
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
    margin: 0;
    list-style: none;
}

.smm-nnd__stats b {
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
}

.smm-nnd__stats span {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    max-width: 170px;
}

.smm-nnd__about {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 34px;
    padding: 26px 30px;
    margin-bottom: 34px;
    border: 1px solid var(--nnd-line);
    border-radius: 20px;
    background: #fbfcfb;
}

.smm-nnd__about-text p {
    margin: 0 0 14px;
    font-size: 15.5px;
    line-height: 1.75;
    color: #2c3d33;
}

.smm-nnd__about-text p:last-child {
    margin-bottom: 0;
}

.smm-nnd__facts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.smm-nnd__facts li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 0;
    border-bottom: 1px solid var(--nnd-line);
    list-style: none;
}

.smm-nnd__facts li:first-child {
    padding-top: 0;
}

.smm-nnd__facts li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.smm-nnd__facts span {
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7c8b82;
}

.smm-nnd__facts b {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: #16241b;
}

.smm-nnd__facts a {
    color: var(--nnd-green);
    border-bottom: 1px solid rgba(37, 96, 60, 0.3);
}

.smm-nnd__section {
    margin-bottom: 38px;
}

.smm-nnd__h2 {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--nnd-line);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--nnd-green);
}

/* напрями */

.smm-nnd__dirs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.smm-nnd__dir {
    --accent: #25603c;
    --accent-soft: #eef4ee;
    margin: 0;
    padding: 20px 22px;
    border: 1px solid var(--nnd-line);
    border-left: 3px solid var(--accent);
    border-radius: 14px;
    background: #fff;
    list-style: none;
}

.smm-nnd__dir[data-accent="blue"] { --accent: #1f4a7a; --accent-soft: #e7eef6; }
.smm-nnd__dir[data-accent="amber"] { --accent: #9a6410; --accent-soft: #f7efe0; }
.smm-nnd__dir[data-accent="teal"] { --accent: #1c6f62; --accent-soft: #e4f2ef; }

.smm-nnd__dir h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--nnd-dark);
}

.smm-nnd__dir p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--nnd-muted);
}

.smm-nnd__dir-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--accent);
}

/* дослідження */

.smm-nnd__research {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.smm-nnd__research li {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(15, 41, 18, 0.08);
    list-style: none;
}

.smm-nnd__research li:last-child {
    border-bottom: 0;
}

.smm-nnd__year {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #478f29;
    padding-top: 3px;
}

.smm-nnd__research h3 {
    margin: 0 0 6px;
    font-size: 16.5px;
    font-weight: 600;
    color: #16241b;
}

.smm-nnd__research p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--nnd-muted);
}

/* хронологія */

.smm-nnd__timeline {
    position: relative;
    margin: 0;
    padding: 0 0 0 22px;
    list-style: none;
    border-left: 1px solid rgba(37, 96, 60, 0.25);
}

.smm-nnd__timeline li {
    position: relative;
    margin: 0 0 18px;
    list-style: none;
}

.smm-nnd__timeline li:last-child {
    margin-bottom: 0;
}

.smm-nnd__timeline li::before {
    content: "";
    position: absolute;
    left: -29px;
    top: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #478f29;
    box-shadow: 0 0 0 3px #fff;
}

.smm-nnd__timeline span {
    display: block;
    margin-bottom: 4px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7c8b82;
}

.smm-nnd__timeline p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: #2c3d33;
}

/* галерея */

.smm-nnd__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.smm-nnd__gallery li {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #e7efe8;
    list-style: none;
}

.smm-nnd__gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.smm-nnd__gallery li:hover img {
    transform: scale(1.04);
}

.smm-nnd__gallery li:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.smm-nnd__gallery li:first-child img {
    aspect-ratio: auto;
    height: 100%;
}

/* посилання */

.smm-nnd__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 22px;
    border-top: 1px solid var(--nnd-line);
}

.smm-nnd__links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid rgba(37, 96, 60, 0.28);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--nnd-green);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.smm-nnd__links a:hover {
    background: var(--nnd-green);
    border-color: var(--nnd-green);
    color: #fff;
}

@media (max-width: 860px) {
    .smm-nnd__about {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .smm-nnd__dirs {
        grid-template-columns: 1fr;
    }

    .smm-nnd__gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .smm-nnd__gallery li:first-child {
        grid-column: span 2;
        grid-row: auto;
    }

    .smm-nnd__gallery li:first-child img {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 620px) {
    .smm-nnd {
        padding: 0 16px 40px;
    }

    .smm-nnd__hero {
        margin: 0 -16px 24px;
        padding: 30px 20px 26px;
        border-radius: 18px;
    }

    .smm-nnd__about {
        padding: 20px;
    }

    .smm-nnd__research li {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Заголовок теми дублює hero — ховаємо */
body.page-id-2352 .single-post-content__title {
    display: none;
}

body.page-id-2352 .single-post-content__date {
    display: none;
}
