/* Страница конференции */

/* Шапка */
.header-logo-link {
    display: flex;
    flex-shrink: 0;
}

.header-site-name {
    display: block;
    color: var(--text-secondary);
    font-size: 33pt;
    font-weight: 700;
    text-decoration: none;
}

/* Кнопка регистрации в шапке */
header .header-join-btn {
    max-width: 124px;
    padding: 5px 12px;
    font-size: 0.72rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
}

/* Хлебные крошки */
.conf-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--additional);
}

.conf-breadcrumbs a,
.conf-breadcrumbs span {
    font-size: 0.9rem;
    white-space: nowrap;
}

.conf-breadcrumbs a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
}

.conf-breadcrumbs a:hover {
    text-decoration: underline;
}

.conf-breadcrumbs [aria-current] {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Сайдбар */
.conf-aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: var(--padding-sm);
    border-radius: var(--radius-sm);
    background-color: var(--primary);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.conf-aside h3 {
    color: var(--secondary);
    padding-bottom: var(--padding-sm);
    border-bottom: 2px solid var(--secondary);
    font-weight: normal;
}

.conf-aside__date {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.conf-aside__day {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--link);
    line-height: 1;
}

.conf-aside__time {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary);
}

.conf-aside__countdown {
    margin-top: -6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
}

.conf-aside__place {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--additional);
}

.conf-aside__free {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--link);
}

.conf-aside__btn {
    display: block;
    padding: 12px var(--padding-md);
    border-radius: var(--radius-sm);
    background-color: var(--link);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(144, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.conf-aside__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(144, 0, 0, 0.35);
}

/* Первый экран */
.conf-hero {
    padding: 26px 24px 22px;
}

.conf-hero__top {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: 28px;
    align-items: center;
    margin-bottom: 20px;
}

.conf-hero__kicker {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
}

.conf-hero__kicker::after {
    content: '';
    flex: 1;
    min-width: 40px;
    height: 1px;
    background: linear-gradient(to right, rgba(48, 93, 103, 0.5), transparent);
}

.conf-hero__kicker-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.2;
    color: var(--link);
    white-space: nowrap;
}

@media (min-width: 1181px) and (max-width: 1420px) {
    .conf-hero__kicker::after {
        display: none;
    }

    .conf-hero__kicker-text {
        font-size: 1.3rem;
        white-space: normal;
    }
}

.conf-nowrap {
    white-space: nowrap;
    font-size: inherit;
    line-height: inherit;
}

.conf-projects {
    font-size: inherit;
    line-height: inherit;
}

@media (min-width: 600px) {
    .conf-projects {
        white-space: nowrap;
    }
}

.conf-hero__title {
    margin-bottom: 16px;
    font-size: clamp(1.85rem, 2.6vw, 2.75rem);
    line-height: 1.08;
    font-weight: 700;
    color: var(--secondary);
}

.conf-hero__theme {
    max-width: 560px;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--secondary);
}

.conf-hero__poster {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(48, 93, 103, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.conf-hero__poster:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(48, 93, 103, 0.3);
}

.conf-hero__poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ключевые факты */
.conf-facts {
    --fact-line: rgba(48, 93, 103, 0.18);
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 14px;
    background: var(--background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    list-style: none;
}

.conf-fact {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px 22px 18px;
}

.conf-fact::before,
.conf-fact::after {
    content: '';
    position: absolute;
    display: none;
    background: var(--fact-line);
}

.conf-fact::before {
    top: 16px;
    bottom: 16px;
    left: 0;
    width: 1px;
}

.conf-fact::after {
    top: 0;
    left: 22px;
    right: 22px;
    height: 1px;
}

.conf-fact:nth-child(even)::before,
.conf-fact:nth-child(n + 3)::after {
    display: block;
}

@media (min-width: 1440px) {
    .conf-facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .conf-fact:not(:first-child)::before {
        display: block;
    }

    .conf-fact:nth-child(n + 3)::after {
        display: none;
    }
}

.conf-fact__label {
    margin-bottom: 3px;
    font-size: 0.85rem;
    line-height: 1.3;
    color: var(--additional);
}

.conf-fact__value {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--secondary);
    white-space: nowrap;
}

.conf-fact__sub {
    margin-top: 3px;
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--additional);
}

.conf-fact__link {
    align-self: flex-start;
    color: var(--link);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(144, 0, 0, 0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.conf-fact__link:hover {
    text-decoration-color: currentColor;
}

.conf-fact--accent .conf-fact__value {
    color: var(--link);
}

/* Онлайн-участие */
.conf-online {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px 40px;
    margin-top: 22px;
    padding: 30px 36px 30px 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--secondary) 0%, #264b54 100%);
    box-shadow: 0 10px 26px rgba(48, 93, 103, 0.2);
}

.conf-online__kicker {
    margin-bottom: 8px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--primary);
}

.conf-online__title {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--background);
    text-wrap: balance;
}

.conf-online__lead {
    max-width: 34rem;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(250, 237, 224, 0.88);
    text-wrap: pretty;
}

.conf-online__note {
    max-width: 34rem;
    margin-top: 12px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--background);
    text-wrap: pretty;
}

.conf-online__note a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.conf-online__note a:hover {
    text-decoration-thickness: 2px;
}

.conf-online__list {
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.conf-online__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    color: var(--background);
    text-decoration: none;
}

.conf-online__link img {
    display: block;
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.22));
    transition: transform 0.2s ease;
}

.conf-online__link span {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.conf-online__link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 6px;
}

@media (hover: hover) {
    .conf-online__link:hover img {
        transform: translateY(-3px);
    }

    .conf-online__link:hover span {
        text-decoration: underline;
        text-underline-offset: 3px;
    }
}

/* Подсветка блока онлайн-участия */
.conf-online {
    position: relative;
    --flash-rgb: 144, 0, 0;
}

.conf-online::before,
.conf-online::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.conf-online::before {
    opacity: 0;
    background: linear-gradient(110deg,
            rgba(255, 255, 255, 0) 38%,
            rgba(255, 255, 255, 0.12) 46%,
            rgba(255, 255, 255, 0.26) 50%,
            rgba(255, 255, 255, 0.12) 54%,
            rgba(255, 255, 255, 0) 62%);
    background-size: 300% 100%;
    background-repeat: no-repeat;
}

.conf-online.is-flash::after {
    animation: conf-online-glow 2.6s ease-out;
}

.conf-online.is-flash::before {
    animation: conf-online-sheen 1.3s ease-in-out 0.2s both;
}

@keyframes conf-online-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--flash-rgb), 0),
            0 0 0 0 rgba(var(--flash-rgb), 0),
            0 0 0 0 rgba(var(--flash-rgb), 0.55);
    }

    12% {
        box-shadow: 0 0 0 3px rgba(var(--flash-rgb), 0.95),
            0 0 28px 6px rgba(var(--flash-rgb), 0.5),
            0 0 0 14px rgba(var(--flash-rgb), 0.22);
    }

    30% {
        box-shadow: 0 0 0 3px rgba(var(--flash-rgb), 0.8),
            0 0 40px 12px rgba(var(--flash-rgb), 0.3),
            0 0 0 26px rgba(var(--flash-rgb), 0);
    }

    30.1% {
        box-shadow: 0 0 0 3px rgba(var(--flash-rgb), 0.8),
            0 0 40px 12px rgba(var(--flash-rgb), 0.3),
            0 0 0 0 rgba(var(--flash-rgb), 0.45);
    }

    45% {
        box-shadow: 0 0 0 3px rgba(var(--flash-rgb), 0.95),
            0 0 30px 8px rgba(var(--flash-rgb), 0.5),
            0 0 0 14px rgba(var(--flash-rgb), 0.18);
    }

    65% {
        box-shadow: 0 0 0 3px rgba(var(--flash-rgb), 0.8),
            0 0 40px 12px rgba(var(--flash-rgb), 0.3),
            0 0 0 26px rgba(var(--flash-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 3px rgba(var(--flash-rgb), 0),
            0 0 48px 16px rgba(var(--flash-rgb), 0),
            0 0 0 26px rgba(var(--flash-rgb), 0);
    }
}

@keyframes conf-online-sheen {
    0% {
        opacity: 1;
        background-position: 110% 0;
    }

    100% {
        opacity: 1;
        background-position: -10% 0;
    }
}

@keyframes conf-online-glow-still {
    0%,
    70% {
        box-shadow: 0 0 0 3px rgba(var(--flash-rgb), 0.9),
            0 0 30px 8px rgba(var(--flash-rgb), 0.35);
    }

    100% {
        box-shadow: 0 0 0 3px rgba(var(--flash-rgb), 0),
            0 0 30px 8px rgba(var(--flash-rgb), 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .conf-online__link img {
        transition: none;
    }

    .conf-online.is-flash::after {
        animation: conf-online-glow-still 2.6s ease-out;
    }

    .conf-online.is-flash::before {
        animation: none;
    }
}

@media (max-width: 1180px) {
    .conf-online {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .conf-online {
        padding: 24px 20px;
    }

    .conf-online__list {
        justify-content: space-between;
        gap: 8px;
    }

    .conf-online__link img {
        width: 54px;
        height: 54px;
    }

    .conf-online__link span {
        font-size: 0.78rem;
    }
}

#wrapper.bad-see .conf-online {
    --flash-rgb: 0, 0, 0;
    background: #fff;
    border: 2px solid #000;
    box-shadow: none;
}

#wrapper.bad-see .conf-online::before {
    display: none;
}

#wrapper.bad-see .conf-online__kicker,
#wrapper.bad-see .conf-online__title,
#wrapper.bad-see .conf-online__lead,
#wrapper.bad-see .conf-online__note,
#wrapper.bad-see .conf-online__note a,
#wrapper.bad-see .conf-online__link {
    color: #000;
}

#wrapper.bad-see .conf-online__note {
    border-left-color: #000;
}

/* Общие элементы */
.conf-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.conf-block__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
}

.conf-block__hint {
    font-size: 0.9rem;
    color: var(--additional);
}

.conf-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.25;
}

.conf-lead {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: var(--padding-md);
    border-radius: var(--radius-md);
    background-color: var(--background);
}

.conf-lead p {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--additional);
}

.conf-lead b {
    font-size: inherit;
    line-height: inherit;
    color: var(--secondary);
}

/* О чём пойдёт речь */
.conf-topics {
    padding: 4px 26px;
    border-radius: var(--radius-md);
    background: var(--background);
    list-style: none;
}

.conf-topic {
    --num-box: 52px;
    display: grid;
    grid-template-columns: var(--num-box) minmax(0, 14rem) minmax(0, 1fr);
    gap: 6px 28px;
    align-items: start;
    padding: 22px 0;
}

.conf-topic + .conf-topic {
    border-top: 1px solid rgba(48, 93, 103, 0.18);
}

.conf-topic__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--num-box);
    height: var(--num-box);
    padding-bottom: 4px; 
    border: 1.5px solid var(--link);
    border-radius: var(--radius-sm);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.75rem;
    font-style: italic;
    line-height: 1;
    color: var(--link);
}

.conf-topic__title,
.conf-topic__text {
    margin-top: calc((var(--num-box) - 1.5rem) / 2);
}

.conf-topic__title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary);
}

.conf-topic__text {
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--additional);
}

/* Почему это важно */
.conf-dash-list.conf-dash-list--single {
    columns: 1;
}

.conf-benefits li {
    font-size: 1.02rem;
    line-height: 1.5;
}

/* Программа */
/* Обложка программы */
#program {
    margin-top: var(--margin-lg);
}

.conf-program-cover {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 30px 36px 30px 44px;
    border-radius: var(--radius-md);
    background: var(--secondary);
    box-shadow: 0 10px 26px rgba(48, 93, 103, 0.18);
}

.conf-program-cover__title {
    margin: 0;
    font-size: clamp(2.1rem, 3.3vw, 3.1rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--background);
}

.conf-program-cover__title span {
    display: block;
    font-size: inherit;
    line-height: inherit;
}

.conf-program-cover__art {
    display: block;
    width: clamp(230px, 24vw, 330px);
    height: auto;
}

@media (max-width: 768px) {
    .conf-program-cover {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 10px;
        padding: 22px 20px 26px;
        text-align: center;
    }

    .conf-program-cover__art {
        order: -1;
        width: min(210px, 70%);
    }

    .conf-program-cover__title {
        font-size: clamp(1.7rem, 8vw, 2.1rem);
    }
}

/* Модераторы */
.conf-moderators {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    border-radius: var(--radius-md);
    background: var(--background);
}

.conf-person {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
    padding: 22px 26px;
}

@media (max-width: 480px) {
    .conf-moderators {
        grid-auto-rows: auto;
    }

    .conf-moderators .conf-person {
        grid-template-columns: 96px minmax(0, 1fr);
        align-items: center;
        gap: 14px;
    }

    .conf-moderators .conf-person__photo {
        align-self: center;
        min-height: 0;
        aspect-ratio: 1;
    }

    .conf-moderators .conf-person__text {
        display: contents;
    }

    .conf-moderators .conf-person__about {
        grid-column: 1 / -1;
    }
}

.conf-person__photo {
    display: block;
    align-self: stretch;
    width: 100%;
    height: auto;
    min-height: 120px;
    aspect-ratio: auto;
    contain: size;
    object-fit: cover;
    object-position: 50% 30%;
    border-radius: 16px;
    outline: 1px solid rgba(0, 0, 0, 0.08);
    outline-offset: -1px;
}

.conf-person__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.conf-person + .conf-person::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 0;
    width: 1px;
    background: rgba(48, 93, 103, 0.18);
}

.conf-person__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
}

.conf-person__about {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--additional);
}

@media (max-width: 1365px) {
    .conf-moderators {
        grid-template-columns: minmax(0, 1fr);
    }

    .conf-person {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .conf-person__photo {
        min-height: 100px;
    }

    .conf-person + .conf-person::before {
        top: 0;
        bottom: auto;
        left: 26px;
        right: 26px;
        width: auto;
        height: 1px;
    }
}

/* Участники */
.conf-block__head--center {
    align-items: center;
}

.conf-members__arrows {
    display: flex;
    gap: 8px;
}

.conf-members__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary);
    cursor: pointer;
    transition: opacity 0.2s;
}

@media (hover: hover) {
    .conf-members__arrow:hover {
        opacity: 0.75;
    }
}

.conf-members {
    padding: 22px 0;
    border-radius: var(--radius-md);
    background: var(--background);
}

.conf-members__track {
    --card: 168px;
    --gap: 24px;
    position: relative;
    display: flex;
    gap: var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 26px, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 26px, #000 calc(100% - 26px), transparent);
}

.conf-members__track::-webkit-scrollbar {
    display: none;
}

.conf-members__track:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 4px;
}

.conf-member {
    flex: 0 0 var(--card);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.conf-member:first-child {
    margin-left: 26px;
}

.conf-member:last-child {
    margin-right: 26px;
}

.conf-member__photo {
    display: grid;
    place-items: center;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
    background: var(--primary);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.6rem;
    font-style: italic;
    letter-spacing: 0.02em;
    color: var(--link);
}

img.conf-member__photo {
    display: block;
    outline: 1px solid rgba(0, 0, 0, 0.08);
    outline-offset: -1px;
}

.conf-member__name {
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--additional);
}

.conf-member__name b {
    display: block;
    font-size: 1rem;
    line-height: inherit;
    font-weight: 700;
    color: var(--secondary);
}

/* Расписание */
.conf-timeline {
    --time-col: 112px;
    --rail-gap: 36px;
    --rail-x: calc(var(--time-col) + var(--rail-gap) / 2);
    --pad: 18px;              
    --dot-bg: var(--background);
    padding: 4px 26px;
    border-radius: var(--radius-md);
    background: var(--background);
    list-style: none;
}

.conf-slot {
    --line-c: 8.85px;         
    position: relative;
    display: grid;
    grid-template-columns: var(--time-col) minmax(0, 1fr);
    gap: 6px var(--rail-gap);
    align-items: start;
    padding: var(--pad) 0;
}

.conf-slot--service {
    --line-c: 11.75px;        
}

.conf-slot:not(:last-child)::before {
    content: '';
    position: absolute;
    top: calc(var(--pad) + var(--line-c));
    bottom: calc(-1 * (var(--pad) + 12px));
    left: calc(var(--rail-x) - 1px);
    width: 2px;
    background: rgba(48, 93, 103, 0.25);
}

.conf-slot::after {
    content: '';
    position: absolute;
    top: calc(var(--pad) + var(--line-c) - 5.5px);
    left: calc(var(--rail-x) - 5.5px);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 0 4px var(--dot-bg);
}

.conf-slot__time {
    margin-top: calc(var(--line-c) - 0.65rem);
    text-align: right;
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.conf-slot__kind {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--link);
}

.conf-slot__body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.conf-slot + .conf-slot .conf-slot__body::before {
    content: '';
    position: absolute;
    top: calc(-1 * var(--pad));
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(48, 93, 103, 0.18);
}

.conf-slot__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--secondary);
}

.conf-slot__note {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--additional);
}

.conf-slot--service::after {
    background: var(--dot-bg);
    box-shadow: inset 0 0 0 2px var(--secondary), 0 0 0 4px var(--dot-bg);
}

.conf-slot--service .conf-slot__title {
    font-weight: 500;
}

.conf-slot--ours .conf-slot__time,
.conf-slot--master .conf-slot__time {
    color: var(--link);
}

.conf-slot--ours::after,
.conf-slot--master::after {
    background: var(--link);
}

.conf-speaker {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.conf-speaker__name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--link);
}

.conf-speaker__about {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--additional);
}

/* Участникам */
.conf-audience,
.conf-plate {
    padding: 20px 26px;
    border-radius: var(--radius-md);
    background: var(--background);
}

/* Что получат участники */
.conf-gets {
    padding: 4px 26px;
    border-radius: var(--radius-md);
    background: var(--background);
}

.conf-gets__group {
    display: grid;
    grid-template-columns: 10rem minmax(0, 1fr);
    gap: 10px 28px;
    padding: 20px 0;
}

.conf-gets__group + .conf-gets__group {
    border-top: 1px solid rgba(48, 93, 103, 0.18);
}

.conf-gets__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--secondary);
}

.conf-gets__list,
.conf-dash-list {
    columns: 2;
    column-gap: 28px;
    margin-bottom: -10px;
    list-style: none;
}

.conf-gets__list li,
.conf-dash-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 22px;
    break-inside: avoid;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--additional);
}

.conf-gets__list li::before,
.conf-dash-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--link);
}

.conf-gets__list li.is-accent {
    font-weight: 700;
    color: var(--secondary);
}

.conf-footmark {
    margin-left: 1px;
    font-size: 0.7rem;
    line-height: 0;
    color: var(--link);
}

.conf-gets__note {
    grid-column: 2;
    max-width: 44rem;
    font-size: 0.82rem;
    font-style: italic;
    line-height: 1.45;
    color: var(--additional);
}

.conf-gets__note span {
    font-size: inherit;
    font-style: normal;
    color: var(--link);
}

/* Нормативная база */
.conf-acts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.conf-act {
    padding: 0 16px;
    border-radius: var(--radius-md);
    background-color: var(--background);
}

.conf-act summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    list-style: none;
    cursor: pointer;
    color: var(--secondary);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
}

.conf-act summary::-webkit-details-marker {
    display: none;
}

.conf-act summary::after {
    content: url("../img/arrow.svg");
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    line-height: 12px;
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.conf-act[open] summary::after {
    transform: rotate(360deg);
}

.conf-act summary:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
    border-radius: 6px;
}

.conf-act ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0 16px 20px;
    border-top: 1px solid var(--secondary);
}

.conf-act li {
    color: var(--additional);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Организаторы */
.conf-orgs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 18px;
    margin: 0;
    padding: 26px 22px;
    list-style: none;
    border-radius: var(--radius-md);
    background: var(--background);
}

.conf-org {
    display: flex;
    justify-content: center;
    text-align: center;
}

.conf-org__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    border-radius: 22px;
    color: inherit;
    text-decoration: none;
}

.conf-org__link:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 6px;
}

.conf-org__link .conf-org__logo,
.conf-org__link .conf-org__name {
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

@media (hover: hover) {
    .conf-org__link:hover .conf-org__logo {
        transform: translateY(-3px);
        box-shadow: 0 0 0 1px rgba(48, 93, 103, 0.22), 0 10px 24px rgba(48, 93, 103, 0.16);
    }

    .conf-org__link:hover .conf-org__name {
        color: var(--link);
    }
}

@media (prefers-reduced-motion: reduce) {
    .conf-org__link:hover .conf-org__logo {
        transform: none;
    }
}

.conf-org__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 150px;
    aspect-ratio: 1;
    padding: 18px;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(48, 93, 103, 0.14), 0 6px 18px rgba(48, 93, 103, 0.08);
}

.conf-org__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.conf-org__logo--fill {
    padding: 0;
}

.conf-org__logo--fill img {
    object-fit: cover;
}

.conf-org__name {
    max-width: 15rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--secondary);
    text-wrap: balance;
}

@media (max-width: 1365px) {
    .conf-orgs {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .conf-org {
        grid-column: span 2;
    }

    .conf-org:nth-child(4) {
        grid-column: 2 / span 2;
    }
}

@media (max-width: 600px) {
    .conf-orgs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
        padding: 20px 14px;
    }

    .conf-org,
    .conf-org:nth-child(4) {
        grid-column: auto;
    }

    .conf-org:last-child {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 7px);
    }

    .conf-org__logo {
        max-width: 130px;
        padding: 14px;
        border-radius: 18px;
    }

    .conf-org__logo--fill {
        padding: 0;
    }

    .conf-org__name {
        font-size: 0.85rem;
    }
}

/* Место проведения */
.conf-venue {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 20px;
}

.conf-venue__info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    border-radius: var(--radius-md);
    background: var(--background);
}

.conf-venue__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.conf-venue__list dt {
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: var(--additional);
}

.conf-venue__list dd {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--secondary);
}

.conf-venue__map {
    position: relative;
    display: block;
    min-height: 320px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--background);
    transition: box-shadow 0.25s ease;
}

.conf-venue__map:hover {
    box-shadow: 0 8px 24px rgba(48, 93, 103, 0.2);
}

.conf-venue__map img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.conf-link-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 12px;
    background-color: var(--secondary);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.conf-link-btn:hover {
    background-color: #1f4a57;
    transform: translateY(-2px);
}

/* Регистрация */
.conf-cta {
    align-items: center;
    gap: 20px;
    padding: 34px var(--padding-md);
    text-align: center;
}

.conf-cta__title {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 700;
    color: var(--link);
}

.conf-cta__text {
    max-width: 620px;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--secondary);
}

.conf-cta .costs-free-trial {
    width: 100%;
    margin-top: 0;
}

.conf-cta__quote {
    max-width: 620px;
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--additional);
}

.conf-channels {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid rgba(48, 93, 103, 0.18);
}

.conf-channels__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
}

.conf-channels__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.conf-channels__list a {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border: 2px solid var(--secondary);
    border-radius: 999px;
    background: var(--background);
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.conf-channels__list a:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-1px);
}

/* После конференции */
.conf-is-over [data-hide-after-end] {
    display: none !important;
}

/* Детали */

main > h2,
.conf-hero__title,
.conf-subtitle,
.conf-topic__title,
.conf-gets__title,
.conf-slot__title,
.conf-person__name,
.conf-cta__title,
.conf-act summary {
    text-wrap: balance;
}

.conf-hero__theme,
.conf-topic__text,
.conf-dash-list li,
.conf-gets__list li,
.conf-gets__note,
.conf-slot__note,
.conf-speaker__about,
.conf-person__about,
.conf-cta__text,
.conf-cta__quote,
.conf-fact__sub,
.conf-act li {
    text-wrap: pretty;
}

.conf-breadcrumbs a,
.conf-fact__link {
    position: relative;
}

.conf-breadcrumbs a::after,
.conf-fact__link::after {
    content: '';
    position: absolute;
    inset: -12px -6px;
}

.conf-channels__list a {
    padding-top: 10px;
    padding-bottom: 10px;
}

.conf-hero__poster,
.conf-venue__map {
    position: relative;
}

.conf-hero__poster::after,
.conf-venue__map::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

/* Версия для слабовидящих */
#wrapper.bad-see .conf-facts,
#wrapper.bad-see .conf-topics,
#wrapper.bad-see .conf-moderators,
#wrapper.bad-see .conf-timeline,
#wrapper.bad-see .conf-gets,
#wrapper.bad-see .conf-audience,
#wrapper.bad-see .conf-plate,
#wrapper.bad-see .conf-act,
#wrapper.bad-see .conf-venue__info,
#wrapper.bad-see .conf-aside {
    background: #fff;
    border-color: #000;
    box-shadow: none;
}

#wrapper.bad-see .conf-hero__title,
#wrapper.bad-see .conf-hero__theme,
#wrapper.bad-see .conf-hero__kicker-text,
#wrapper.bad-see .conf-fact__value,
#wrapper.bad-see .conf-subtitle,
#wrapper.bad-see .conf-slot__title,
#wrapper.bad-see .conf-speaker__name,
#wrapper.bad-see .conf-person__name {
    color: #000;
}

#wrapper.bad-see .conf-program-cover {
    background: #fff;
    border: 2px solid #000;
    box-shadow: none;
}

#wrapper.bad-see .conf-program-cover__title {
    color: #000;
}

#wrapper.bad-see .conf-orgs {
    background: #fff;
    border: 2px solid #000;
}

#wrapper.bad-see .conf-org__name {
    color: #000;
}

#wrapper.bad-see .conf-members {
    background: #fff;
    border: 2px solid #000;
}

#wrapper.bad-see .conf-member__photo {
    background: #fff;
    border: 2px solid #000;
    color: #000;
}

#wrapper.bad-see .conf-member__name,
#wrapper.bad-see .conf-member__name b {
    color: #000;
}

#wrapper.bad-see .conf-members__arrow {
    background: #000;
    color: #fff;
}

/* Адаптив */
@media (max-width: 1080px) {
    .conf-topic {
        grid-template-columns: var(--num-box) minmax(0, 1fr);
        gap: 6px 18px;
    }

    .conf-topic__text {
        grid-column: 2;
        margin-top: 0;
    }
}

@media (max-width: 1080px) {
    .conf-venue {
        grid-template-columns: 1fr;
    }

    .conf-gets__group {
        grid-template-columns: 1fr;
    }

    .conf-gets__note {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .conf-gets__list,
    .conf-dash-list {
        columns: 1;
    }
}

@media (max-width: 1180px) {
    .conf-hero__top {
        grid-template-columns: 1fr;
    }

    .conf-hero__poster {
        width: 100%;
        max-width: 420px;
        justify-self: center;
    }
}

@media (orientation: portrait) and (max-width: 1100px) {
    .header-site-name {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .header-site-name {
        font-size: 1.4rem;
    }

    .conf-hero {
        padding: 16px 12px 12px;
    }

    .conf-hero__kicker::after {
        display: none;
    }

    .conf-hero__kicker-text {
        font-size: 1.15rem;
        white-space: normal;
    }

    .conf-hero__title {
        font-size: clamp(1.25rem, 6.2vw, 1.6rem);
    }

    .conf-hero__theme {
        font-size: 1rem;
    }

    .conf-slot:not(:last-child)::before,
    .conf-slot::after {
        display: none;
    }

    .conf-timeline {
        padding: 2px 16px;
    }

    .conf-slot {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .conf-slot + .conf-slot .conf-slot__body::before {
        display: none;
    }

    .conf-slot + .conf-slot {
        border-top: 1px solid rgba(48, 93, 103, 0.18);
    }

    .conf-slot__time {
        margin-top: 0;
        text-align: left;
    }

    .conf-person {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .conf-person__photo {
        min-height: 96px;
        border-radius: 10px;
    }

    .conf-members {
        padding: 16px 0;
    }

    .conf-members__track {
        --card: 136px;
        --gap: 16px;
        -webkit-mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
        mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    }

    .conf-member:first-child {
        margin-left: 16px;
    }

    .conf-member:last-child {
        margin-right: 16px;
    }

    .conf-member__photo {
        border-radius: 10px;
        font-size: 2.1rem;
    }

    .conf-members__arrow {
        width: 36px;
        height: 36px;
    }

    .conf-person + .conf-person::before {
        left: 16px;
        right: 16px;
    }

    .conf-cta {
        padding: 24px 14px;
    }
}

@media (orientation: portrait) and (max-width: 768px) {
    .header-site-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .conf-facts {
        grid-template-columns: 1fr;
    }

    .conf-fact:nth-child(even)::before {
        display: none;
    }

    .conf-fact + .conf-fact::after {
        display: block;
    }

    .conf-fact {
        padding: 14px 18px 15px;
    }

    .conf-fact::after {
        left: 18px;
        right: 18px;
    }

    .conf-lead {
        padding: 14px;
    }

    .conf-topics,
    .conf-gets {
        padding: 2px 16px;
    }

    .conf-audience,
    .conf-plate {
        padding: 16px;
    }

    .conf-topic {
        --num-box: 42px;
        gap: 6px 14px;
        padding: 18px 0;
    }

    .conf-topic__num {
        font-size: 1.45rem;
    }
}

@media (max-width: 360px) {
    .header-site-name {
        font-size: 1.15rem;
    }

    .header-content .header-join-btn {
        max-width: 98px;
        padding: 4px 8px;
        font-size: 0.66rem;
    }
}
