/* ============================================================
   ПЕРЕМЕННЫЕ ТЕМЫ
   ============================================================ */
:root {
    /* Бренд */
    --conf-orange:        #FF7800;
    --conf-orange-dark:   #B85500;
    --conf-orange-bg:     #FFF3E8;  /* фон-капсула */
    --conf-orange-soft:   #FFFAF5;  /* hover-фон строки */
    --conf-orange-border: #FFD9B8;

    /* Текст */
    --conf-text:          #1A1A1A;
    --conf-text-muted:    #444;
    --conf-text-soft:     #666;
    --conf-text-dim:      #8A92A0;
    --conf-text-empty:    #C4C9D2;
    --conf-note:          #999;

    /* Поверхности и линии */
    --conf-surface:       #FAFAFA;
    --conf-border:        #E8ECF1;
    --conf-border-soft:   #F0F2F5;

    /* Шрифт и радиусы */
    --conf-font:          'Montserrat', sans-serif;
    --conf-radius:        14px;
    --conf-radius-lg:     16px;
}


/* ============================================================
   ОБЩАЯ ТИПОГРАФИКА
   ============================================================ */
.conf-section-block,
.conf-section-block * {
    font-family: var(--conf-font);
}

/* Универсальная мини-капс-надпись */
.conf-section-goal__label,
.conf-section-topics__title,
.conf-section-mods__title,
.conf-section-participants__title,
.conf-section-related__title,
.conf-section-program__title,
.conf-prog-header__cell {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--conf-text);
}


/* ============================================================
   БЛОК СЕКЦИИ (внешний контейнер)
   ============================================================ */
.conf-section-block {
    margin-bottom: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--conf-border);
}
.conf-section-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.conf-section-block__title {
    font-size: 28px;
    font-weight: 800;
    color: var(--conf-text);
    margin: 0 0 32px;
    line-height: 1.3;
}

/* Единый отступ между внутренними блоками секции */
.conf-section-mods,
.conf-section-goal,
.conf-section-topics,
.conf-section-quote,
.conf-section-participants,
.conf-section-related,
.conf-section-program {
    margin: 0 0 32px;
}
.conf-section-mods:last-child,
.conf-section-goal:last-child,
.conf-section-topics:last-child,
.conf-section-quote:last-child,
.conf-section-participants:last-child,
.conf-section-related:last-child,
.conf-section-program:last-child {
    margin-bottom: 0;
}


/* ============================================================
   ЦЕЛЬ СЕКЦИИ
   ============================================================ */
.conf-section-goal {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.conf-section-goal__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--conf-orange-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.conf-section-goal__icon svg {
    width: 22px;
    height: 22px;
}
.conf-section-goal__label {
    color: var(--conf-orange);
    letter-spacing: .8px;
    display: block;
    margin-bottom: 6px;
}
.conf-section-goal__text p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--conf-text-muted);
    margin: 0;
}


/* ============================================================
   ТЕМЫ
   ============================================================ */
.conf-section-topics {
    background: var(--conf-surface);
    border-radius: var(--conf-radius);
    padding: 28px 32px;
}
.conf-section-topics__title {
    margin: 0 0 20px;
    font-size: 14px;
}
.conf-section-topics__list {
    columns: 2;
    column-gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.conf-section-topics__list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    break-inside: avoid;
}
.conf-section-topics__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 9px;
    height: 9px;
    background: var(--conf-orange);
    border-radius: 50%;
}


/* ============================================================
   ЦИТАТА
   ============================================================ */
.conf-section-quote {
    border-left: 4px solid var(--conf-orange);
    padding: 20px 28px;
    background: var(--conf-orange-soft);
    border-radius: 0 var(--conf-radius) var(--conf-radius) 0;
    font-size: 15px;
    font-style: italic;
    line-height: 1.7;
    color: #555;
}


/* ============================================================
   МОДЕРАТОРЫ
   ============================================================ */
.conf-section-mods__title {
    margin: 0 0 20px;
    font-size: 14px;
}
.conf-section-mods__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.conf-section-mod {
    flex: 1 1 340px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--conf-surface);
    border-radius: var(--conf-radius);
    border: 1px solid var(--conf-border);
}
.conf-section-mod__photo {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 50%;
    overflow: hidden;
}
.conf-section-mod__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.conf-section-mod__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.conf-section-mod__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--conf-text);
    text-transform: uppercase;
}
.conf-section-mod__desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--conf-text-soft);
}


/* ============================================================
   УЧАСТНИКИ ДИСКУССИИ — таблица 2 колонки, без шапки
   ============================================================ */
.conf-section-participants__title {
    margin: 0 0 20px;
    font-size: 14px;
}

.conf-participants-table {
    width: 100%;
    display: table;
    border-collapse: collapse;
}
.conf-participant-row {
    display: table-row;
    transition: background .15s ease;
}
.conf-participant-row:hover {
    background: var(--conf-orange-soft);
}

.conf-participant-row__name,
.conf-participant-row__desc {
    display: table-cell;
    padding: 16px 24px 16px 0;
    border-bottom: 1px solid var(--conf-border-soft);
    vertical-align: top;
    line-height: 1.5;
}
.conf-participant-row:first-child .conf-participant-row__name,
.conf-participant-row:first-child .conf-participant-row__desc {
    border-top: 1px solid var(--conf-border-soft);
}

.conf-participant-row__name {
    width: 320px;
    font-size: 14px;
    font-weight: 700;
    color: var(--conf-text);
    letter-spacing: .2px;
    padding-left: 16px;
    position: relative;
}
/* Оранжевая риска слева во всю высоту ячейки на hover */
.conf-participant-row__name::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--conf-orange);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform .25s ease;
}
.conf-participant-row:hover .conf-participant-row__name::before {
    transform: scaleY(1);
}
/* На первой строке учитываем верхний бордер таблицы — риска не залезает на него */
.conf-participant-row:first-child .conf-participant-row__name::before {
    top: 1px;
}

.conf-participant-row__desc {
    font-size: 14px;
    color: var(--conf-text-soft);
    padding-right: 0;
}


/* ============================================================
   СВЯЗАННЫЕ СЕКЦИИ — текст-ссылки в столбик
   ============================================================ */
.conf-section-related__title {
    margin: 0 0 20px;
    font-size: 14px;
}
.conf-section-related__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.conf-section-related__item {
    display: inline-flex;
    align-items: center;
    padding: 10px 8px 10px 16px;
    color: var(--conf-text);
    text-decoration: none;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.4;
    border-left: 2px solid var(--conf-border);
    width: fit-content;
    max-width: 100%;
    transition: border-color .2s ease, color .2s ease, padding-left .2s ease;
}
.conf-section-related__item:hover {
    border-left-color: var(--conf-orange);
    color: var(--conf-orange-dark);
    padding-left: 22px;
}


/* ============================================================
   ПРЕДВАРИТЕЛЬНАЯ ПРОГРАММА
   ============================================================ */
.conf-section-program__title {
    margin: 0 0 20px;
    font-size: 14px;
}
.conf-section-program__title span {
    color: var(--conf-orange);
    margin-left: 2px;
}

.conf-prog-table {
    border: 1px solid var(--conf-border);
    border-radius: var(--conf-radius-lg);
    overflow: hidden;
    background: #fff;
}

.conf-prog-header,
.conf-prog-row {
    display: grid;
    grid-template-columns: 160px 280px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.conf-prog-header {
    background: var(--conf-orange-bg);
    padding: 16px 28px;
    border-bottom: 1px solid var(--conf-orange-border);
}
.conf-prog-header__cell {
    color: var(--conf-orange-dark) !important;
    letter-spacing: .8px;
}

.conf-prog-row {
    position: relative;
    padding: 20px 28px;
    border-bottom: 1px solid var(--conf-border-soft);
    transition: background .15s ease;
}
.conf-prog-row:last-child {
    border-bottom: none;
}

/* Декоративная оранжевая полоска слева — выезжает на hover */
.conf-prog-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--conf-orange);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform .25s ease;
}
.conf-prog-row:hover {
    background: var(--conf-orange-soft);
}
.conf-prog-row:hover::before {
    transform: scaleY(1);
}

.conf-prog-row__time {
    font-size: 16px;
    font-weight: 800;
    color: var(--conf-orange);
    line-height: 1.2;
    letter-spacing: -.2px;
    white-space: nowrap;
}
.conf-prog-row__time--empty {
    color: var(--conf-text-empty);
    font-weight: 400;
}

.conf-prog-row__speaker {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.conf-prog-row__speaker-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--conf-text);
    line-height: 1.4;
}
.conf-prog-row__speaker-pos {
    font-size: 12px;
    font-weight: 400;
    color: var(--conf-text-dim);
    line-height: 1.55;
}

.conf-prog-row__topic {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--conf-text);
}

.conf-section-program__note {
    font-size: 12px;
    color: var(--conf-note);
    margin: 18px 0 0;
    font-style: italic;
}


/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
    .conf-section-block__title {
        font-size: 24px;
    }
    .conf-prog-header,
    .conf-prog-row {
        grid-template-columns: 130px 220px minmax(0, 1fr);
        gap: 20px;
    }
    .conf-participant-row__name {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .conf-section-block__title {
        font-size: 22px;
    }
    .conf-section-topics__list {
        columns: 1;
    }
    .conf-section-mod {
        flex: 1 1 100%;
    }

    /* Таблица участников — превращаем в стопку: ФИО над должностью */
    .conf-participants-table,
    .conf-participant-row,
    .conf-participant-row__name,
    .conf-participant-row__desc {
        display: block;
        width: auto;
    }
    .conf-participant-row {
        padding: 14px 0 14px 16px;
        border-bottom: 1px solid var(--conf-border-soft);
        position: relative;
    }
    .conf-participant-row:first-child {
        border-top: 1px solid var(--conf-border-soft);
    }
    .conf-participant-row__name,
    .conf-participant-row__desc {
        padding: 0;
        border: none;
    }
    .conf-participant-row__name {
        margin-bottom: 4px;
    }
    /* На мобилке риска уходит к строке целиком */
    .conf-participant-row__name::before {
        display: none;
    }
    .conf-participant-row::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--conf-orange);
    }

    /* Связанные секции — на мобилке тянутся на всю ширину */
    .conf-section-related__item {
        width: 100%;
        max-width: none;
    }

    /* Программа — таблица превращается в стопку карточек */
    .conf-prog-table {
        border: none;
        border-radius: 0;
        background: transparent;
        overflow: visible;
    }
    .conf-prog-header {
        display: none;
    }
    .conf-prog-row {
        grid-template-columns: 1fr;
        gap: 12px;
        background: #fff;
        border: 1px solid var(--conf-border);
        border-radius: var(--conf-radius);
        padding: 20px 22px 20px 26px;
        margin-bottom: 12px;
        align-items: start;
        overflow: hidden;
    }
    .conf-prog-row:last-child {
        margin-bottom: 0;
    }
    .conf-prog-row::before {
        transform: scaleY(1);
        width: 3px;
    }
    .conf-prog-row__time {
        font-size: 15px;
    }
    .conf-prog-row__topic {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .conf-section-topics {
        padding: 20px;
    }
    .conf-section-goal {
        flex-direction: column;
    }
    .conf-prog-row {
        padding: 16px 16px 16px 20px;
    }
}
