/**
 * SMM Lab — оформлення сторінки «Лабораторії кафедри».
 */

.smm-lab {
    --lab-green: #25603c;
    --lab-ink: #16241b;
    --lab-muted: #5f6f66;
    --lab-line: rgba(15, 41, 18, 0.12);

    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 24px 72px;
    color: var(--lab-ink);
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.smm-lab h2 {
    margin: 0;
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--lab-green);
}

.smm-lab p {
    margin: 0 0 14px;
    font-size: 15.5px;
    line-height: 1.7;
}

.smm-lab img {
    display: block;
    width: 100%;
    height: auto;
}

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

/* Тема тримає контент сторінки у 8 колонках — для схеми й сітки потрібна повна ширина. */
body.page-id-2055 .col-lg-8.offset-lg-2 {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
    margin-left: 0;
}

/* ---------- Вступ ---------- */

.smm-lab__lead {
    background: linear-gradient(160deg, #f4f8f4 0%, #eef4ee 100%);
    border: 1px solid var(--lab-line);
    border-radius: 20px;
    padding: 32px 32px 24px;
    margin-bottom: 40px;
}

.smm-lab__lead p {
    font-size: 17px;
    line-height: 1.75;
    color: #26362c;
    margin: 0 0 22px;
}

.smm-lab__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.smm-lab__stats li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
}

.smm-lab__stats b {
    font-size: 30px;
    line-height: 1;
    color: var(--lab-green);
    font-variant-numeric: tabular-nums;
}

.smm-lab__stats span {
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lab-muted);
}

/* ---------- Схема ---------- */

.smm-lab__scheme {
    margin: 0 0 56px;
    padding: 0;
    text-align: center;
}

.smm-lab__scheme-title {
    margin: 0 0 18px !important;
    font-size: 11.5px !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lab-muted);
}

.smm-lab__node {
    display: inline-block;
    margin: 0 auto 34px !important;
    padding: 18px 28px;
    max-width: 560px;
    border-radius: 14px;
    background: linear-gradient(150deg, #12301c 0%, #25603c 100%);
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.45 !important;
    box-shadow: 0 18px 34px -22px rgba(15, 41, 18, 0.7);
}

.smm-lab__branches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.smm-lab__branch {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    padding: 20px 18px 18px;
    border: 1px solid var(--lab-line);
    border-radius: 14px;
    background: #fff;
    text-align: left;
    border-top: 3px solid var(--accent, #25603c);
}

.smm-lab__branch::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -20px;
    width: 1px;
    height: 17px;
    background: var(--lab-line);
}

.smm-lab__room {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--accent-soft, #eef4ee);
    color: var(--accent, #25603c);
}

.smm-lab__branch-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--lab-ink);
}

/* ---------- Блок лабораторії ---------- */

.smm-lab__lab {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 34px;
    align-items: start;
    padding: 34px 0;
    border-top: 1px solid var(--lab-line);
}

.smm-lab__lab:nth-of-type(even) .smm-lab__media {
    order: 2;
}

.smm-lab__media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--accent-soft, #eef4ee);
}

.smm-lab__media::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(15, 41, 18, 0.06);
    border-radius: inherit;
    pointer-events: none;
}

.smm-lab__img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.smm-lab__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px !important;
    font-size: 11.5px !important;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent, #25603c);
}

.smm-lab__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent, #25603c);
}

.smm-lab__title {
    margin: 0 0 14px !important;
    color: var(--lab-ink);
}

.smm-lab__desc {
    color: #2f3f35;
    margin-bottom: 22px !important;
}

.smm-lab__subtitle {
    margin: 0 0 12px !important;
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lab-muted);
}

.smm-lab__tasks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: lab-task;
}

.smm-lab__tasks li {
    position: relative;
    margin: 0;
    padding-left: 26px;
    font-size: 14.5px;
    line-height: 1.55;
    color: #34453a;
    counter-increment: lab-task;
}

.smm-lab__tasks li::before {
    content: counter(lab-task);
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-soft, #eef4ee);
    color: var(--accent, #25603c);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* ---------- Акцентний блок ---------- */

.smm-lab__feature {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 30px;
    align-items: center;
    margin: 36px 0;
    padding: 26px;
    border: 1px solid var(--lab-line);
    border-radius: 20px;
    background: linear-gradient(150deg, #ffffff 0%, #f3f8f3 100%);
}

.smm-lab__feature-media {
    border-radius: 14px;
    overflow: hidden;
}

.smm-lab__feature-media img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.smm-lab__feature-body h2 {
    margin: 0 0 12px;
    font-size: clamp(20px, 2.2vw, 27px);
    color: var(--lab-green);
}

.smm-lab__feature-body p {
    font-size: 15px;
}

/* ---------- Мобільні ---------- */

@media (max-width: 980px) {
    .smm-lab__branches {
        grid-template-columns: repeat(2, 1fr);
    }

    .smm-lab__lab {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .smm-lab__lab:nth-of-type(even) .smm-lab__media {
        order: 0;
    }

    .smm-lab__feature {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

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

    .smm-lab__lead {
        padding: 22px 20px 18px;
    }

    .smm-lab__stats {
        gap: 24px;
    }

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

    .smm-lab__branch::before {
        display: none;
    }

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

@media (prefers-reduced-motion: reduce) {
    .smm-lab * {
        transition: none !important;
    }
}
