.sobs-forum {
    --forum-bg: #f5f6f8;
    --forum-card: #ffffff;
    --forum-text: #111827;
    --forum-muted: #667085;
    --forum-border: #e7eaf0;
    --forum-red: #e30613;
    --forum-red-dark: #bd0010;
    --forum-blue: #2563eb;
    --forum-shadow: 0 10px 28px rgba(20, 36, 80, 0.07);

    width: min(1240px, calc(100% - 32px));
    margin: 32px auto 80px;

    color: var(--forum-text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.sobs-forum *,
.sobs-forum *::before,
.sobs-forum *::after {
    box-sizing: border-box;
}

/* Первый экран */

.sobs-forum__hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;

    min-height: 265px;
    margin-bottom: 32px;
    padding: clamp(34px, 6vw, 72px);

    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 40px;

    background:
        radial-gradient(
            circle at 88% 20%,
            rgba(227, 6, 19, 0.16),
            transparent 30%
        ),
        radial-gradient(
            circle at 18% 6%,
            rgba(37, 99, 235, 0.18),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f1f5ff 52%,
            #fff4f5 100%
        );

    box-shadow: var(--forum-shadow);
}

.sobs-forum__hero h1,
.sobs-topic-card h1 {
    max-width: 840px;
    margin: 8px 0 14px;

    font-size: clamp(40px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.sobs-forum__hero p {
    max-width: 680px;
    margin: 0;

    color: var(--forum-muted);

    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.55;
}

.sobs-forum__eyebrow {
    display: inline-block;

    color: var(--forum-blue);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Кнопки */

.sobs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 0 24px;

    border: 0;
    border-radius: 16px;

    background: var(--forum-red);
    box-shadow: 0 10px 24px rgba(227, 6, 19, 0.23);

    color: #ffffff !important;

    font: inherit;
    font-weight: 800;
    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.sobs-button:hover {
    background: var(--forum-red-dark);

    box-shadow: 0 13px 27px rgba(227, 6, 19, 0.29);

    transform: translateY(-2px);
}

.sobs-button--wide {
    width: 100%;
}

/* Основная сетка */

.sobs-forum__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: start;
    gap: 28px;
}

.sobs-forum__topics,
.sobs-create-card,
.sobs-topic-card,
.sobs-discussion,
.sobs-reply-card {
    border: 1px solid var(--forum-border);
    border-radius: 24px;

    background: var(--forum-card);
    box-shadow: var(--forum-shadow);
}

.sobs-forum__topics,
.sobs-create-card,
.sobs-discussion,
.sobs-reply-card {
    padding: clamp(22px, 3vw, 36px);
}

.sobs-forum__sidebar {
    position: sticky;
    top: 24px;
}

.sobs-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 22px;
}

.sobs-section-heading h2,
.sobs-create-card h2,
.sobs-reply-card h2 {
    margin: 5px 0 0;

    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.sobs-create-card h2,
.sobs-reply-card h2 {
    margin-bottom: 22px;
}

/* Список тем */

.sobs-topic-list {
    display: grid;
    gap: 12px;
}

.sobs-topic-row {
    margin: 0;
}

.sobs-topic-row__link {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 17px;

    padding: 19px;

    border: 1px solid var(--forum-border);
    border-radius: 18px;

    color: inherit;
    text-decoration: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.sobs-topic-row__link:hover {
    border-color: rgba(37, 99, 235, 0.32);

    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);

    transform: translateY(-2px);
}

.sobs-topic-row__icon {
    display: grid;
    place-items: center;

    width: 52px;
    height: 52px;

    border-radius: 16px;

    background: #eef4ff;
    color: var(--forum-blue);
}

.sobs-topic-row__icon svg {
    width: 25px;

    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sobs-topic-row__content {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.sobs-topic-row__content > strong {
    font-size: 18px;
    line-height: 1.3;
}

.sobs-topic-row__excerpt {
    display: -webkit-box;
    overflow: hidden;

    color: var(--forum-muted);

    font-size: 14px;
    line-height: 1.45;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sobs-topic-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 18px;

    color: var(--forum-muted);

    font-size: 12px;
}

.sobs-topic-row__arrow {
    color: var(--forum-red);

    font-size: 24px;
    font-weight: 700;
}

/* Формы */

.sobs-topic-form,
.sobs-comment-form {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;

    gap: 18px;

    width: 100%;
    height: auto !important;

    overflow: visible !important;
}

.sobs-field {
    display: grid;
    gap: 8px;
    margin: 0;
}

.sobs-field > span {
    color: var(--forum-text);

    font-size: 14px;
    font-weight: 750;
}

.sobs-field input,
.sobs-field textarea {
    display: block;

    width: 100%;

    border: 1px solid #d8dde7;
    border-radius: 15px;
    outline: none;

    background: #ffffff;
    color: var(--forum-text);

    font: inherit;
    font-size: 16px;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.sobs-field input {
    min-height: 52px;
    padding: 0 15px;
}

.sobs-field textarea {
    min-height: 145px;
    padding: 14px 15px;

    line-height: 1.5;

    resize: vertical;
}

.sobs-field input:focus,
.sobs-field textarea:focus {
    border-color: var(--forum-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.sobs-field__error,
.ec-error {
    color: #c1121f;
    font-size: 12px;
}

.sobs-honeypot,
.sobs-comment-form .ec-antispam {
    position: absolute !important;
    left: -10000px !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;
}

.sobs-comment-form.well {
    margin: 0;
    padding: 0;

    border: 0;

    background: transparent;
    box-shadow: none;
}

.sobs-comment-form .form-actions {
    display: flex;
    justify-content: flex-start;
}

/* Сообщения */

.sobs-login-note,
.sobs-empty {
    display: grid;
    gap: 6px;

    padding: 22px;

    border: 1px dashed #ccd4e2;
    border-radius: 17px;

    background: #f8fafc;
    color: var(--forum-muted);

    line-height: 1.5;
}

.sobs-login-note strong,
.sobs-empty strong {
    color: var(--forum-text);
}

.sobs-alert {
    margin: 0 0 18px;
    padding: 14px 16px;

    border-radius: 14px;

    font-size: 14px;
    line-height: 1.45;
}

.sobs-alert--error {
    border: 1px solid #fecaca;

    background: #fff1f2;
    color: #9f1239;
}

.sobs-alert--success {
    border: 1px solid #bbf7d0;

    background: #f0fdf4;
    color: #166534;
}

/* Страница темы */

.sobs-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin: 0 0 20px;

    color: var(--forum-muted);

    font-size: 14px;
}

.sobs-breadcrumbs a {
    color: var(--forum-blue);
    text-decoration: none;
}

.sobs-topic-card {
    overflow: hidden;
    margin-bottom: 28px;
}

.sobs-topic-card__header {
    padding: clamp(30px, 5vw, 60px);

    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(227, 6, 19, 0.12),
            transparent 32%
        ),
        linear-gradient(135deg, #f4f7ff, #fff8f8);
}

.sobs-topic-card__header time {
    color: var(--forum-muted);
    font-size: 14px;
}

.sobs-topic-card__body {
    padding: clamp(27px, 4vw, 48px);

    color: #273142;

    font-size: clamp(17px, 2vw, 19px);
    line-height: 1.75;

    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.sobs-count {
    padding: 8px 12px;

    border-radius: 999px;

    background: #eef4ff;
    color: var(--forum-blue);

    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

/* Комментарии */

.sobs-comment-list {
    display: grid;
    gap: 13px;
}

.sobs-comment {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 15px;

    padding: 20px;

    border: 1px solid var(--forum-border);
    border-radius: 18px;

    background: #ffffff;
}

.sobs-comment__avatar {
    position: relative;

    width: 46px;
    height: 46px;

    border-radius: 15px;

    background: linear-gradient(
        135deg,
        var(--forum-blue),
        #79a4ff
    );
}

.sobs-comment__avatar::before,
.sobs-comment__avatar::after {
    position: absolute;
    left: 50%;

    border-radius: 50%;

    background: #ffffff;

    content: "";

    transform: translateX(-50%);
}

.sobs-comment__avatar::before {
    top: 10px;

    width: 10px;
    height: 10px;
}

.sobs-comment__avatar::after {
    bottom: 8px;

    width: 22px;
    height: 11px;

    border-radius: 12px 12px 7px 7px;
}

.sobs-comment__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;

    margin-bottom: 9px;
}

.sobs-comment__header time {
    color: var(--forum-muted);

    font-size: 12px;
    white-space: nowrap;
}

.sobs-comment__text {
    color: #344054;

    line-height: 1.62;
    overflow-wrap: anywhere;
}

.sobs-comment__official {
    margin-top: 16px;
    padding: 14px 16px;

    border-left: 3px solid var(--forum-red);
    border-radius: 0 12px 12px 0;

    background: #fff5f5;
    color: #3f3031;
}

.sobs-comment__official > strong {
    display: block;
    margin-bottom: 6px;

    color: var(--forum-red-dark);
}

.sobs-reply-card {
    margin-top: 28px;
    background: #fbfcfe;
}

.sobs-reply-card > p {
    margin: -12px 0 22px;

    color: var(--forum-muted);

    line-height: 1.5;
}

/* Пагинация */

.sobs-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin: 22px 0 0;
    padding: 0;

    list-style: none;
}

.sobs-pagination .pagination a,
.sobs-pagination .pagination span {
    display: grid;
    place-items: center;

    min-width: 40px;
    height: 40px;
    padding: 0 10px;

    border: 1px solid var(--forum-border);
    border-radius: 11px;

    background: #ffffff;
    color: var(--forum-text);

    text-decoration: none;
}

.sobs-pagination .pagination .active a,
.sobs-pagination .pagination .active span {
    border-color: var(--forum-red);

    background: var(--forum-red);
    color: #ffffff;
}

/* Планшет */

@media (max-width: 960px) {
    .sobs-forum__layout {
        grid-template-columns: 1fr;
    }

    .sobs-forum__sidebar {
        position: static;
    }
}

/* Телефон */

@media (max-width: 640px) {
    .sobs-forum {
        width: calc(100% - 20px);
        margin-top: 16px;
    }

    .sobs-forum__hero {
        align-items: flex-start;
        flex-direction: column;

        min-height: 0;
        padding: 30px 22px;

        border-radius: 26px;
    }

    .sobs-forum__hero h1,
    .sobs-topic-card h1 {
        font-size: 39px;
    }

    .sobs-topic-row__link {
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 15px;
    }

    .sobs-topic-row__icon {
        width: 44px;
        height: 44px;

        border-radius: 13px;
    }

    .sobs-topic-row__arrow {
        display: none;
    }

    .sobs-section-heading,
    .sobs-comment__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .sobs-comment {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 11px;

        padding: 15px;
    }

    .sobs-comment__avatar {
        width: 36px;
        height: 36px;

        border-radius: 12px;
    }
}


/* =====================================================
   АВТОРИЗАЦИЯ HYBRIDAUTH
===================================================== */

.sobs-forum__hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    width: min(100%, 460px);
}

.sobs-auth {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px;
    color: #171717;
    background: #fff;
    border: 1px solid #e7eaf0;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(20, 36, 80, 0.08);
}

.sobs-auth__icon,
.sobs-auth__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    color: #fff;
    background: #e30613;
    border-radius: 15px;
    font-size: 25px;
    font-weight: 800;
}

.sobs-auth__avatar svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.sobs-auth__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.sobs-auth__content strong {
    color: #171717;
    font-size: 15px;
    font-weight: 700;
}

.sobs-auth__content span,
.sobs-auth__content small {
    margin-top: 3px;
    color: #74777f;
    font-size: 12px;
}

.sobs-auth__providers,
.sobs-auth__providers .ha-providers {
    display: flex;
    align-items: center;
}

.sobs-yandex-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 9px 15px;
    color: #171717;
    background: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 13px;
    font-size: 13pxpx;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.sobs-yandex-login:hover {
    color: #171717;
    background: #fff;
    box-shadow: 0 9px 24px rgba(20, 36, 80, 0.12);
    transform: translateY(-2px);
}

.sobs-yandex-login__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    color: #fff;
    background: #fc3f1d;
    border-radius: 9px;
    font-size: 17px;
    font-weight: 800;
}

.sobs-auth__logout {
    padding: 9px 13px;
    color: #e30613;
    background: #fff1f2;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.sobs-auth__logout:hover {
    color: #fff;
    background: #e30613;
}

.sobs-auth__error {
    grid-column: 1 / -1;
    padding: 10px 12px;
    color: #a8000b;
    background: #fff0f1;
    border-radius: 10px;
    font-size: 13px;
}


/* =====================================================
   ФОРМА EASYCOMM
===================================================== */

.sobs-comments .ec-form {
    display: block;
    width: 100%;
    margin-top: 22px;
    padding: clamp(20px, 4vw, 32px);
    background: #f7f8fa;
    border: 1px solid #e7eaf0;
    border-radius: 24px;
}

.sobs-comments .ec-form .row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0 0 18px;
}

.sobs-comments .ec-form .row > * {
    flex: 1 1 260px;
    width: auto;
    max-width: none;
    padding: 0;
}

.sobs-comments .ec-form .form-group,
.sobs-comments .ec-input_wr,
.sobs-comments .ec-form__row {
    margin: 0 0 18px;
}

.sobs-comments .ec-form label {
    display: block;
    margin-bottom: 8px;
    color: #25262a;
    font-size: 14px;
    font-weight: 700;
}

.sobs-comments .ec-form input[type="text"],
.sobs-comments .ec-form input[type="email"],
.sobs-comments .ec-form input[type="tel"],
.sobs-comments .ec-form select,
.sobs-comments .ec-form textarea {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 13px 16px;
    color: #171717;
    background: #fff;
    border: 1px solid #dfe2e8;
    border-radius: 14px;
    outline: none;
    box-shadow: none;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.sobs-comments .ec-form textarea {
    min-height: 150px;
    resize: vertical;
}

.sobs-comments .ec-form input:focus,
.sobs-comments .ec-form select:focus,
.sobs-comments .ec-form textarea:focus {
    background: #fff;
    border-color: #e30613;
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.09);
}

.sobs-comments .ec-form input::placeholder,
.sobs-comments .ec-form textarea::placeholder {
    color: #a2a5ad;
}

.sobs-comments .ec-form button[type="submit"],
.sobs-comments .ec-form input[type="submit"],
.sobs-comments .ec-action_go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 25px;
    color: #fff;
    background: #e30613;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(227, 6, 19, 0.2);
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.sobs-comments .ec-form button[type="submit"]:hover,
.sobs-comments .ec-form input[type="submit"]:hover,
.sobs-comments .ec-action_go:hover {
    background: #c9000b;
    box-shadow: 0 13px 28px rgba(227, 6, 19, 0.27);
    transform: translateY(-2px);
}

.sobs-comments .ec-error {
    display: block;
    margin-top: 6px;
    color: #c9000b;
    font-size: 12px;
}

.sobs-comments .ec-antispam {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.sobs-comments .checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
}

.sobs-comments .checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #e30613;
}

.sobs-comments [id$="-success"] {
    margin-top: 16px;
    color: #176c3a;
    font-weight: 600;
}


/* =====================================================
   МОБИЛЬНАЯ ВЕРСИЯ
===================================================== */

@media (max-width: 760px) {
    .sobs-forum__hero {
        align-items: stretch;
    }

    .sobs-forum__hero-actions {
        align-items: stretch;
        width: 100%;
    }

    .sobs-auth {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .sobs-auth__providers,
    .sobs-auth__logout {
        grid-column: 1 / -1;
        width: 100%;
    }

    .sobs-yandex-login,
    .sobs-auth__logout {
        justify-content: center;
    }

    .sobs-comments .ec-form {
        padding: 18px;
        border-radius: 18px;
    }

    .sobs-comments .ec-form .row {
        display: block;
    }

    .sobs-comments .ec-form .row > * {
        margin-bottom: 16px;
    }

    .sobs-comments .ec-form button[type="submit"],
    .sobs-comments .ec-form input[type="submit"],
    .sobs-comments .ec-action_go {
        width: 100%;
    }
}

/* =====================================================
   СТРАНИЦА ТЕМЫ
===================================================== */

.sobs-topic-page {
    --sobs-red: #e30613;
    --sobs-red-dark: #c5000b;
    --sobs-text: #18191d;
    --sobs-muted: #747780;
    --sobs-border: #e6e8ed;
    --sobs-background: #f5f6f8;

    width: min(100% - 32px, 1320px);
    margin: 0 auto;
    padding: 32px 0 80px;
    color: var(--sobs-text);
}

.sobs-topic-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    align-items: center;
    gap: 40px;
    margin-bottom: 28px;
    padding: clamp(28px, 5vw, 54px);
    overflow: hidden;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(227, 6, 19, 0.12),
            transparent 34%
        ),
        linear-gradient(135deg, #fff 0%, #f7f8fa 100%);
    border: 1px solid var(--sobs-border);
    border-radius: 32px;
    box-shadow: 0 18px 50px rgba(20, 36, 80, 0.08);
}

.sobs-topic-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 230px;
    height: 230px;
    background: var(--sobs-red);
    border-radius: 50%;
    opacity: 0.04;
    pointer-events: none;
}

.sobs-topic-hero__content {
    position: relative;
    z-index: 1;
}

.sobs-topic-hero h1 {
    max-width: 780px;
    margin: 12px 0 14px;
    color: var(--sobs-text);
    font-size: clamp(30px, 5vw, 56px);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.sobs-topic-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 25px;
    color: var(--sobs-red);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.sobs-topic-back span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #fff;
    background: var(--sobs-red);
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.sobs-topic-back:hover span {
    transform: translateX(-3px);
}

.sobs-topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--sobs-muted);
    font-size: 13px;
}


/* =====================================================
   СЕТКА ТЕМЫ
===================================================== */

.sobs-topic-layout {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
}

.sobs-topic-layout__main {
    display: grid;
    gap: 28px;
}

.sobs-comment-form-card {
    scroll-margin-top: 100px;
}

 

.sobs-topic-layout__sidebar {
    position: sticky;
    top: 100px;
}


/* =====================================================
   ПЕРВОЕ СООБЩЕНИЕ
===================================================== */

.sobs-topic-card,
.sobs-comments-card,
.sobs-comment-form-card {
    padding: clamp(24px, 4vw, 42px);
    background: #fff;
    border: 1px solid var(--sobs-border);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(20, 36, 80, 0.07);
}

.sobs-topic-card__author {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--sobs-border);
}

.sobs-topic-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #fff;
    background: var(--sobs-red);
    border-radius: 15px;
}

.sobs-topic-card__avatar svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.sobs-topic-card__author div:last-child {
    display: flex;
    flex-direction: column;
}

.sobs-topic-card__author span {
    color: var(--sobs-muted);
    font-size: 12px;
}

.sobs-topic-card__author strong {
    margin-top: 2px;
    color: var(--sobs-text);
    font-size: 15px;
}

.sobs-topic-content {
    color: #33353a;
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.sobs-topic-content p {
    margin: 0 0 18px;
}

.sobs-topic-content p:last-child {
    margin-bottom: 0;
}

.sobs-topic-content a {
    color: var(--sobs-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =====================================================
   КОММЕНТАРИИ
===================================================== */

.sobs-comments-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sobs-comments-heading h2,
.sobs-comment-form-card h2 {
    margin: 7px 0 0;
    color: var(--sobs-text);
    font-size: clamp(23px, 3vw, 32px);
    line-height: 1.15;
}

.sobs-comments-list {
    display: grid;
    gap: 16px;
}

.sobs-comments-list .ec-message,
.sobs-comments-list .comment {
    margin: 0;
    padding: 22px;
    background: var(--sobs-background);
    border: 1px solid var(--sobs-border);
    border-radius: 20px;
}

.sobs-comments-list .ec-message + .ec-message,
.sobs-comments-list .comment + .comment {
    margin-top: 16px;
}

.sobs-comments-list .ec-message p,
.sobs-comments-list .comment p {
    margin: 10px 0 0;
    color: #3c3e43;
    font-size: 15px;
    line-height: 1.7;
}

.sobs-comments-list .ec-message-author,
.sobs-comments-list .comment-by,
.sobs-comments-list .ec-message strong {
    color: var(--sobs-text);
    font-weight: 700;
}

.sobs-comments-list .date,
.sobs-comments-list time {
    color: var(--sobs-muted);
    font-size: 12px;
}

.sobs-comments-list ul.comments {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sobs-comments-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 42px 20px;
    text-align: center;
    background: var(--sobs-background);
    border: 1px dashed #d7dae1;
    border-radius: 20px;
}

.sobs-comments-empty strong {
    color: var(--sobs-text);
    font-size: 17px;
}

.sobs-comments-empty span {
    margin-top: 6px;
    color: var(--sobs-muted);
    font-size: 14px;
}


/* =====================================================
   ФОРМА КОММЕНТАРИЯ EASYCOMM
===================================================== */

.sobs-comment-form-card__intro {
    margin: 10px 0 22px;
    color: var(--sobs-muted);
    font-size: 14px;
    line-height: 1.6;
}

.sobs-comment-form-card .ec-form {
    display: block;
    width: 100%;
    margin: 0;
}

.sobs-comment-form-card .ec-form .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 17px;
    margin: 0;
}

.sobs-comment-form-card .ec-form .row > *,
.sobs-comment-form-card .form-group,
.sobs-comment-form-card .ec-input_wr,
.sobs-comment-form-card .ec-form__row {
    width: 100%;
    max-width: none;
    margin: 0 0 17px;
    padding: 0;
}

.sobs-comment-form-card .ec-form label {
    display: block;
    margin: 0 0 8px;
    color: #292a2e;
    font-size: 13px;
    font-weight: 700;
}

.sobs-comment-form-card .ec-form input[type="text"],
.sobs-comment-form-card .ec-form input[type="email"],
.sobs-comment-form-card .ec-form input[type="tel"],
.sobs-comment-form-card .ec-form select,
.sobs-comment-form-card .ec-form textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    color: var(--sobs-text);
    background: var(--sobs-background);
    border: 1px solid #dfe2e8;
    border-radius: 14px;
    outline: none;
    box-shadow: none;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.sobs-comment-form-card .ec-form textarea {
    min-height: 170px;
    resize: vertical;
}

.sobs-comment-form-card .ec-form input:focus,
.sobs-comment-form-card .ec-form textarea:focus,
.sobs-comment-form-card .ec-form select:focus {
    background: #fff;
    border-color: var(--sobs-red);
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.09);
}

.sobs-comment-form-card .ec-form input::placeholder,
.sobs-comment-form-card .ec-form textarea::placeholder {
    color: #9da1aa;
}

.sobs-comment-form-card .ec-form button[type="submit"],
.sobs-comment-form-card .ec-form input[type="submit"],
.sobs-comment-form-card .ec-action_go {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 54px;
    padding: 13px 20px;
    color: #fff;
    background: var(--sobs-red);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 25px rgba(227, 6, 19, 0.22);
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.sobs-comment-form-card .ec-form button[type="submit"]:hover,
.sobs-comment-form-card .ec-form input[type="submit"]:hover,
.sobs-comment-form-card .ec-action_go:hover {
    background: var(--sobs-red-dark);
    box-shadow: 0 15px 30px rgba(227, 6, 19, 0.28);
    transform: translateY(-2px);
}

.sobs-comment-form-card .ec-error {
    display: block;
    margin-top: 6px;
    color: var(--sobs-red-dark);
    font-size: 12px;
}

.sobs-comment-form-card .ec-antispam {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.sobs-comment-form-card [id$="-success"] {
    margin-top: 16px;
    padding: 14px;
    color: #176c3a;
    background: #edf9f1;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 600;
}


/* =====================================================
   МОБИЛЬНАЯ ВЕРСИЯ
===================================================== */

@media (max-width: 980px) {
    .sobs-topic-hero,
    .sobs-topic-layout {
        grid-template-columns: 1fr;
    }

    .sobs-topic-layout__sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .sobs-topic-page {
        width: min(100% - 20px, 1320px);
        padding-top: 15px;
    }

    .sobs-topic-hero,
    .sobs-topic-card,
    .sobs-comments-card,
    .sobs-comment-form-card {
        padding: 21px;
        border-radius: 21px;
    }

    .sobs-topic-hero {
        gap: 25px;
    }

    .sobs-topic-layout {
        gap: 18px;
    }

    .sobs-topic-layout__main {
        gap: 18px;
    }

    .sobs-topic-content {
        font-size: 16px;
        line-height: 1.7;
    }

    .sobs-comments-list .ec-message,
    .sobs-comments-list .comment {
        padding: 17px;
        border-radius: 16px;
    }
}

.sobs-topic-layout {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
}

.sobs-topic-layout__main,
.sobs-topic-card,
.sobs-comments-card,
.sobs-comment-form-card {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
}

.sobs-comment-form-card .ec-form {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
}

.sobs-comment-form-card .ec-form textarea,
.sobs-comment-form-card .ec-form input[type="text"],
.sobs-comment-form-card .ec-form input[type="email"] {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
}