/* Стили страницы «Summarize any video» (page-video-summarizer.php) */

/* Единый размер H2 всех секций страницы — как у заголовков остальных лендингов:
   48px, на ширине до 862px — 36px; межстрочный интервал у всех 105%.
   Здесь — только общие блоки (how-it-works, more-results, faq, related-features,
   форма): они используются и на других страницах, поэтому правило ограничено
   этой страницей через класс .video-summarizer-page на её секциях
   (.transcript-header и .service-footer в page-video-summarizer.php).
   Заголовки блоков этой страницы (.summary-types-title и др.) задают
   те же значения у себя, а мобильный размер — в конце файла.
   Заголовок карточки пробной загрузки (.trial-upload-section-title) —
   подзаголовок формы, его не трогаем */
.video-summarizer-page :is(
    .hiw-title,
    .mres-title,
    .process-title,
    .related-features-h1,
    .support-form-title
) {
    font-size: 48px;
    line-height: 105%;
}

@media (max-width: 862px) {
    .video-summarizer-page :is(
        .hiw-title,
        .mres-title,
        .process-title,
        .related-features-h1,
        .support-form-title
    ) {
        font-size: 36px;
    }
}

/* ДЕМО — ролик в конце шапки, как на главном лендинге (content-landing.php).
   Там белую подложку под нижней половиной демо (.demo-section::after) обрезает
   overflow у .hero. Здесь секция how-it-works лежит в той же шапке, поэтому
   обрезаем своей обёрткой на всю ширину: без неё подложка высотой 100vh
   легла бы поверх начала секции. Отступ сверху — под рамку .demo-bg (inset -12px),
   снизу — под сдвиг демо (translateY 8%) и воздух до следующей секции */
.video-summarizer-demo {
    position: relative;
    overflow: hidden;
    padding: 12px 0 100px;
}

@media screen and (max-width: 648px) {
    .video-summarizer-demo {
        padding-bottom: 48px;
    }
}

/* SUMMARY TYPES — типы конспектов: заголовок, лид и карточки по типам видео */
.summary-types {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 56px;
    box-sizing: border-box;
}

.summary-types-title {
    max-width: 900px;
    margin: 0;
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 105%;
    letter-spacing: -0.02em;
    color: #09090a;
    text-wrap: balance;
}

.summary-types-lead {
    max-width: 700px;
    margin: 20px 0 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    color: #000000;
}

.summary-types-lead strong {
    font-weight: 600;
    color: #09090a;
}

.summary-types-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 56px;
}

.summary-types-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 24px;
    border: 1px solid #e8e4f5;
    border-radius: 24px;
    background: #f5f4fc;
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-types-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(51, 51, 255, 0.1);
}

.summary-types-card-title {
    margin: 0;
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #09090a;
}

/* min-height держит панели карточек на одной линии при разной длине строки */
.summary-types-card-audience {
    min-height: 3em;
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    color: #000000;
}

.summary-types-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding: 16px;
    border: 1px solid #e8e4f5;
    border-radius: 16px;
    background: #ffffff;
}

/* Подпись занимает всю строку, теги переносятся под ней */
.summary-types-panel-caption {
    flex-basis: 100%;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a4a4b8;
}

.summary-types-tag {
    padding: 7px 12px;
    border-radius: 99px;
    background: #ebebfa;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #2a2a80;
}

.summary-types-card-note {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 14px;
    background: linear-gradient(90deg, #3333ff 0%, #ff5c33 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    .summary-types-card {
        transition: none;
    }

    .summary-types-card:hover {
        transform: none;
    }
}

@media (max-width: 1040px) {
    .summary-types-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .summary-types {
        padding: 80px 24px;
    }

    .summary-types-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* FIND THE EXACT MOMENT — режимы поиска слева, макет виджета поиска справа */
.find-moment {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.find-moment-glow {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(182, 182, 238, 0.35), transparent);
    pointer-events: none;
}

.find-moment-inner {
    position: relative;
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 72px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 56px;
    box-sizing: border-box;
}

.find-moment-title {
    margin: 0;
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 105%;
    letter-spacing: -0.02em;
    color: #1c1446;
}

.find-moment-lead {
    margin: 20px 0 0;
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: #3b3466;
}

.find-moment-lead strong {
    font-weight: 600;
    color: #1c1446;
}

.find-moment-modes {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.find-moment-mode {
    position: relative;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 16px;
    align-items: center;
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 16px;
    background: transparent;
    font-family: 'Manrope', sans-serif;
    text-align: left;
    color: #1c1446;
    overflow: hidden;
    transition: background-color 0.2s;
}

.find-moment-mode.is-active {
    background: #f2f2fb;
}

.find-moment-mode-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #e5e5ef;
    font-weight: 700;
    font-size: 13px;
    color: #8a84ad;
    transition: background-color 0.2s, color 0.2s;
}

.find-moment-mode.is-active .find-moment-mode-num {
    background: #b6b6ee;
    color: #1c1446;
}

.find-moment-mode-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.find-moment-mode-title {
    font-weight: 700;
    font-size: 16px;
}

.find-moment-mode-desc {
    font-size: 14px;
    color: #8a84ad;
}

/* Полоса прогресса режима: видна только у активного */
.find-moment-mode-progress {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 2px;
    background: #e5e5ef;
    opacity: 0;
}

.find-moment-mode-progress > span {
    display: block;
    width: 100%;
    height: 100%;
    background: #b6b6ee;
    transform: scaleX(0);
    transform-origin: left;
}

.find-moment-mode.is-active .find-moment-mode-progress {
    opacity: 1;
}

.find-moment-mode.is-running .find-moment-mode-progress > span {
    /* Быстрее показа режима (7s в find-moment.js): полоса успевает заполниться
       и стоит полной до переключения */
    animation: find-moment-progress 5s linear forwards;
}

.find-moment-mode.is-full .find-moment-mode-progress > span {
    transform: scaleX(1);
}

@keyframes find-moment-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* Демо декоративное: список режимов и виджет на мышь не реагируют */
.find-moment-modes,
.find-moment-widget {
    pointer-events: none;
    user-select: none;
}

/* Виджет «Search the video» — светлая тема приложения */
.find-moment-widget {
    min-width: 0;
    padding: 30px;
    border-radius: 28px;
    background: #f2f2fb;
    box-shadow: 0 30px 80px rgba(60, 50, 140, 0.1);
    font-family: 'Manrope', sans-serif;
    color: #1c1446;
}

.find-moment-widget-title {
    margin: 0 0 18px;
    font-weight: 700;
    font-size: 26px;
    color: #1c1446;
}

.find-moment-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    padding: 4px;
    border-radius: 14px;
    background: #e5e5ef;
}

.find-moment-tab {
    padding: 9px 18px;
    border: none;
    border-radius: 11px;
    background: transparent;
    font-family: inherit;
    font-weight: 500;
    font-size: 16px;
    color: #1c1446;
    transition: background-color 0.2s;
}

.find-moment-tab.is-active {
    background: #b6b6ee;
}

.find-moment-search {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 56px;
    margin-top: 22px;
    padding: 0 16px;
    border: 1.5px solid #dcc3f3;
    border-radius: 14px;
    background: #f2f2fb;
    box-sizing: border-box;
}

.find-moment-search-icon,
.find-moment-clear {
    flex-shrink: 0;
    color: #5b4f86;
}

.find-moment-clear {
    opacity: 0;
    transition: opacity 0.2s;
}

.find-moment-clear.is-visible {
    opacity: 1;
}

.find-moment-search-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 19px;
    color: #1c1446;
}

.find-moment-placeholder {
    color: #8a84ad;
}

.find-moment-placeholder[hidden] {
    display: none;
}

.find-moment-caret {
    display: inline-block;
    width: 1.5px;
    height: 1.1em;
    margin: 0 1px;
    vertical-align: -0.15em;
    background: #1c1446;
    animation: find-moment-caret 1s steps(1) infinite;
}

@keyframes find-moment-caret {
    50% { opacity: 0; }
}

/* Высота фиксирована, чтобы карточка не прыгала при смене режима;
   низ растворяется в цвет карточки */
.find-moment-results {
    position: relative;
    height: 420px;
    margin-top: 22px;
    overflow: hidden;
}

.find-moment-results::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(242, 242, 251, 0), #f2f2fb);
    pointer-events: none;
}

.find-moment-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    text-align: center;
    font-size: 17px;
    color: #3b3466;
}

.find-moment-row {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 20px;
    margin-bottom: 22px;
    animation: find-moment-row-in 0.45s ease both;
    animation-delay: calc(var(--i, 0) * 0.12s);
}

.find-moment-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: #1c1446;
}

.find-moment-time svg {
    color: #5b4f86;
}

.find-moment-text {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 1.5;
    color: #1c1446;
}

.find-moment-text mark {
    padding: 0 2px;
    border-radius: 2px;
    background: #b6b6ee;
    color: #1c1446;
}

.find-moment-thumb,
.find-moment-frame-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: #e5e5ef;
    overflow: hidden;
}

.find-moment-thumb img,
.find-moment-frame-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.find-moment-frames {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.find-moment-frame {
    margin: 0;
    animation: find-moment-frame-in 0.4s ease both;
    animation-delay: calc(var(--i, 0) * 70ms);
}

.find-moment-frame figcaption {
    margin-top: 8px;
    text-align: center;
    font-size: 15px;
    color: #1c1446;
}

@keyframes find-moment-row-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes find-moment-frame-in {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .find-moment-mode,
    .find-moment-mode-num,
    .find-moment-tab,
    .find-moment-clear {
        transition: none;
    }

    .find-moment-row,
    .find-moment-frame,
    .find-moment-caret {
        animation: none;
    }
}

@media (max-width: 1000px) {
    .find-moment-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
        padding: 80px 24px;
    }
}

@media (max-width: 560px) {
    .find-moment-widget {
        padding: 20px;
    }

    /* Превью справа не помещается — ставим его под текст */
    .find-moment-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .find-moment-frames {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* SUMMARIZE ONCE, FIND IT LATER — библиотека видео с поиском по всем загрузкам.
   Токены светлой темы те же, что у find-moment */
.video-library {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    font-family: 'Manrope', sans-serif;
    color: #1c1446;
}

.video-library-glow {
    position: absolute;
    left: -260px;
    bottom: -300px;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(182, 182, 238, 0.35), transparent);
    pointer-events: none;
}

.video-library-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 56px;
    box-sizing: border-box;
}

.video-library-header {
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: 64px;
    align-items: end;
}

.video-library-title {
    margin: 0;
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 105%;
    letter-spacing: -0.02em;
    color: #1c1446;
}

.video-library-lead {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: #3b3466;
}

.video-library-lead strong {
    font-weight: 600;
    color: #1c1446;
}

/* Виджет «My library». Демо декоративное: мышь по нему ничего не делает */
.video-library-widget {
    position: relative;
    margin-top: 56px;
    padding: 30px;
    border-radius: 28px;
    background: #f2f2fb;
    box-shadow: 0 30px 80px rgba(60, 50, 140, 0.1);
    pointer-events: none;
    user-select: none;
}

.video-library-widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.video-library-widget-title {
    margin: 0;
    font-weight: 700;
    font-size: 24px;
    color: #1c1446;
}

.video-library-private {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 99px;
    background: #e5e5ef;
    font-weight: 600;
    font-size: 14px;
    color: #5b4f86;
}

.video-library-search {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 60px;
    margin-top: 20px;
    padding: 0 18px;
    border: 1.5px solid #dcc3f3;
    border-radius: 14px;
    background: #ffffff;
    box-sizing: border-box;
}

.video-library-search-icon {
    flex-shrink: 0;
    color: #5b4f86;
}

.video-library-search-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 19px;
    color: #1c1446;
}

.video-library-placeholder {
    color: #8a84ad;
}

.video-library-placeholder[hidden] {
    display: none;
}

.video-library-caret {
    display: inline-block;
    width: 2px;
    height: 22px;
    margin: 0 1px;
    vertical-align: middle;
    background: #1c1446;
    animation: video-library-caret 1s steps(1) infinite;
}

@keyframes video-library-caret {
    50% { opacity: 0; }
}

.video-library-counter {
    flex-shrink: 0;
    font-size: 14px;
    color: #8a84ad;
}

.video-library-stage {
    min-height: 420px;
    margin-top: 22px;
}

/* Состояние 1 — сетка видео библиотеки */
.video-library-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.video-library-grid[hidden],
.video-library-results[hidden] {
    display: none;
}

.video-library-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
    background: #ffffff;
}

.video-library-tile-thumb,
.video-library-card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e5e5ef;
}

.video-library-tile-thumb {
    border-radius: 10px;
}

.video-library-tile-thumb img,
.video-library-card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-library-duration {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(28, 20, 70, 0.7);
    font-weight: 700;
    font-size: 11px;
    color: #ffffff;
}

.video-library-tile-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.35;
}

.video-library-tile-type {
    font-size: 12px;
    color: #8a84ad;
}

/* Состояние 2 — карточки результатов */
.video-library-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.video-library-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    outline: 2px solid transparent;
    transition: transform 0.3s, outline-color 0.3s, box-shadow 0.3s;
}

.video-library-results.is-shown .video-library-card {
    /* backwards, а не both: после анимации transform должен вернуться к стилям,
       иначе подъём карточки в состоянии is-hovered не сработает */
    animation: video-library-card-in 0.45s ease backwards;
    animation-delay: calc(var(--i, 0) * 0.12s);
}

/* Наведение — только от демо-курсора */
.video-library-card.is-hovered {
    transform: translateY(-4px);
    outline-color: #b6b6ee;
    box-shadow: 0 18px 40px rgba(60, 50, 140, 0.16);
}

.video-library-card-thumb {
    border-radius: 12px;
}

.video-library-timecode {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 8px;
    background: #b6b6ee;
    font-weight: 700;
    font-size: 12px;
    color: #1c1446;
}

/* Полоса до найденного момента */
.video-library-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
}

.video-library-progress > span {
    display: block;
    height: 100%;
    background: #b6b6ee;
}

.video-library-card-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
}

.video-library-quote {
    font-size: 14px;
    line-height: 1.5;
    color: #3b3466;
}

.video-library-quote mark {
    padding: 0 2px;
    border-radius: 2px;
    background: #b6b6ee;
    color: #1c1446;
}

.video-library-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #8a84ad;
}

.video-library-open {
    font-weight: 700;
    color: #1c1446;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-library-card.is-hovered .video-library-open {
    opacity: 1;
}

/* Демо-курсор: позицию задаёт скрипт через transform */
.video-library-cursor {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
    filter: drop-shadow(0 2px 4px rgba(28, 20, 70, 0.3));
    transition: opacity 0.3s;
}

.video-library-cursor.is-visible {
    opacity: 1;
}

.video-library-cursor.is-moving {
    transition: opacity 0.3s, transform 1.1s cubic-bezier(0.5, 0, 0.2, 1);
}

@keyframes video-library-card-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .video-library-card,
    .video-library-open {
        transition: none;
    }

    .video-library-results.is-shown .video-library-card,
    .video-library-caret {
        animation: none;
    }
}

@media (max-width: 1000px) {
    .video-library-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .video-library-card:nth-child(n + 3) {
        display: none;
    }

    .video-library-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .video-library-tile:nth-child(n + 7) {
        display: none;
    }
}

@media (max-width: 900px) {
    .video-library-inner {
        padding: 80px 24px;
    }

    .video-library-header {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .video-library-widget {
        padding: 18px;
    }

    .video-library-counter {
        display: none;
    }
}

@media (max-width: 620px) {
    .video-library-results {
        grid-template-columns: minmax(0, 1fr);
    }

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

/* SHARE THE SUMMARY — способы поделиться и статичный макет карточки конспекта.
   Токены светлой темы те же, что у find-moment и video-library */
.share-summary {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    font-family: 'Manrope', sans-serif;
    color: #1c1446;
}

.share-summary-glow {
    position: absolute;
    top: -260px;
    right: -240px;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(182, 182, 238, 0.35), transparent);
    pointer-events: none;
}

.share-summary-inner {
    position: relative;
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 72px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 56px;
    box-sizing: border-box;
}

.share-summary-title {
    margin: 0;
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 105%;
    letter-spacing: -0.02em;
    color: #1c1446;
}

.share-summary-lead {
    margin: 20px 0 0;
    font-size: 18px;
    line-height: 1.5;
    color: #3b3466;
}

.share-summary-lead strong {
    font-weight: 600;
    color: #1c1446;
}

.share-summary-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.share-summary-option {
    display: flex;
    align-items: center;
    gap: 14px;
}

.share-summary-option-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e4e4fb;
    color: #1c1446;
}

.share-summary-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.share-summary-option-title {
    font-weight: 600;
    font-size: 16px;
}

.share-summary-option-desc {
    font-size: 14px;
    color: #8a84ad;
}

/* Макет карточки конспекта — декоративный */
.share-summary-card {
    position: relative;
    min-width: 0;
    padding: 28px 28px 32px;
    border-radius: 28px;
    background: #f2f2fb;
    box-shadow: 0 30px 80px rgba(60, 50, 140, 0.1);
    pointer-events: none;
    user-select: none;
}

.share-summary-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.share-summary-card-title {
    margin: 0;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.25;
}

.share-summary-toolbar {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.share-summary-tool {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #e4e4fb;
    color: #1c1446;
}

.share-summary-tool.is-active {
    box-shadow: inset 0 0 0 1.5px #b6b6ee;
}

/* Открытое меню «Download» под панелью, наезжает на содержимое */
.share-summary-menu {
    position: absolute;
    top: 88px;
    right: 28px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 200px;
    padding: 18px 20px;
    border: 1.5px solid #dcc3f3;
    border-radius: 14px;
    background: #e5e5e7;
    box-shadow: 0 20px 40px rgba(28, 20, 70, 0.12);
    box-sizing: border-box;
}

.share-summary-menu-caption {
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.share-summary-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 500;
    font-size: 19px;
}

/* Иконка документа: лист с загнутым углом, внизу цветная плашка формата,
   выступающая за левый край — как у привычных иконок файлов */
.share-summary-file {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 28px;
    height: 30px;
}

.share-summary-file svg {
    display: block;
}

.share-summary-file-label {
    position: absolute;
    left: -5px;
    bottom: 4px;
    padding: 2px 3px;
    border-radius: 3px;
    background: #5b4f86;
    font-weight: 700;
    font-size: 8px;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.share-summary-file--txt .share-summary-file-label {
    background: #5b4f86;
}

.share-summary-file--docx .share-summary-file-label {
    background: #3333ff;
}

.share-summary-file--pdf .share-summary-file-label {
    background: #ff5c33;
}

.share-summary-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 22px;
}

.share-summary-part-title {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a84ad;
}

.share-summary-points,
.share-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 16px;
}

.share-summary-points li {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.share-summary-points li::before {
    content: '';
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b6b6ee;
    transform: translateY(-2px);
}

.share-summary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    text-align: left;
}

.share-summary-table th {
    padding: 10px 14px;
    background: #e5e5ef;
    font-weight: 700;
    font-size: 13px;
    color: #8a84ad;
}

.share-summary-table td {
    padding: 10px 14px;
    border-top: 1px solid #e5e5ef;
    font-size: 15px;
}

.share-summary-actions li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-summary-checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid #8a84ad;
    border-radius: 5px;
    box-sizing: border-box;
}

@media (max-width: 980px) {
    .share-summary-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
        padding: 80px 24px;
    }
}

@media (max-width: 560px) {
    .share-summary-card {
        padding: 20px;
    }

    .share-summary-card-title {
        font-size: 18px;
    }

    .share-summary-tool {
        width: 44px;
        height: 44px;
    }

    .share-summary-menu {
        top: 82px;
        right: 20px;
        width: 180px;
    }
}

/* Мобильный размер H2 блоков этой страницы — в конце файла, чтобы перекрыть
   их основные правила выше (48px) */
@media (max-width: 862px) {
    .summary-types-title,
    .find-moment-title,
    .video-library-title,
    .share-summary-title {
        font-size: 36px;
    }
}
