/*
|--------------------------------------------------------------------------
| Публичная страница «О проекте»
|--------------------------------------------------------------------------
| Стили первого экрана, блоков, пустого состояния и подписи пагинации.
| Общая пагинация оформляется в pagination.css.
|--------------------------------------------------------------------------
*/

.about-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 5vw, 70px);

    min-height: 260px;
    margin-bottom: 24px;
    padding: clamp(28px, 5vw, 54px);

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 24px;

    background:
        radial-gradient(
            circle at 90% 15%,
            rgb(37 99 235 / 14%),
            transparent 38%
        ),
        radial-gradient(
            circle at 8% 100%,
            rgb(37 99 235 / 5%),
            transparent 42%
        ),
        var(--surface, #ffffff);

    box-shadow: 0 16px 42px rgb(15 23 42 / 5%);
}

.about-hero::before {
    position: absolute;
    z-index: -1;
    right: -80px;
    bottom: -130px;

    width: 310px;
    height: 310px;

    border: 1px solid rgb(37 99 235 / 12%);
    border-radius: 50%;

    content: "";
    pointer-events: none;
}

.about-hero > div:first-child {
    min-width: 0;
    max-width: 720px;
}

.about-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin: 0 0 16px;

    color: var(--primary, #2563eb);

    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.about-hero .eyebrow::before {
    width: 19px;
    height: 2px;

    border-radius: 2px;

    background: currentColor;

    content: "";
}

.about-hero h1 {
    margin: 0;

    color: var(--text, #172033);

    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.08;
}

.about-hero p:not(.eyebrow) {
    max-width: 630px;
    margin: 20px 0 0;

    color: var(--text-soft, #64748b);

    font-size: clamp(0.98rem, 1.3vw, 1.08rem);
    line-height: 1.75;
}

.about-hero-symbol {
    position: relative;

    display: grid;
    flex: 0 0 auto;
    place-items: center;

    width: clamp(94px, 13vw, 146px);
    aspect-ratio: 1;

    border: 1px solid rgb(37 99 235 / 24%);
    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            rgb(37 99 235 / 13%),
            rgb(37 99 235 / 3%)
        ),
        var(--bg-soft, #eff6ff);

    color: var(--primary, #2563eb);

    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;

    box-shadow:
        0 18px 35px rgb(37 99 235 / 10%),
        inset 0 1px 0 rgb(255 255 255 / 40%);

    transform: rotate(-7deg);
}

.about-hero-symbol::after {
    position: absolute;
    inset: 9px;

    border: 1px solid rgb(37 99 235 / 11%);
    border-radius: 23px;

    content: "";
    pointer-events: none;
}

.about-blocks {
    display: grid;
    gap: 15px;
}

.about-block {
    position: relative;
    overflow: hidden;

    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
    gap: 20px;

    padding: clamp(21px, 3vw, 30px);

    border: 1px solid var(--border, #d9e0ea);
    border-radius: 18px;

    background: var(--surface, #ffffff);

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.about-block::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;

    width: 3px;

    background: var(--primary, #2563eb);

    content: "";
    opacity: 0;

    transition: opacity 180ms ease;
}

.about-block:hover {
    border-color: rgb(37 99 235 / 33%);
    box-shadow: 0 14px 32px rgb(15 23 42 / 7%);
    transform: translateY(-2px);
}

.about-block:hover::before {
    opacity: 1;
}

.about-block-icon {
    display: grid;
    place-items: center;

    width: 56px;
    height: 56px;

    border: 1px solid rgb(37 99 235 / 11%);
    border-radius: 16px;

    background: var(--bg-soft, #eff6ff);
    color: var(--primary, #2563eb);

    font-size: 1.55rem;
    line-height: 1;
}

.about-block-content {
    min-width: 0;
}

.about-block-content h2 {
    margin: 2px 0 11px;

    color: var(--text, #172033);

    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.35;
}

.about-block-description {
    color: var(--text-soft, #475569);

    font-size: 0.98rem;
    line-height: 1.78;
    overflow-wrap: anywhere;
}

.about-block-description > :first-child {
    margin-top: 0;
}

.about-block-description > :last-child {
    margin-bottom: 0;
}

.about-block-description p,
.about-block-description ul,
.about-block-description ol {
    margin: 0 0 12px;
}

.about-block-description ul,
.about-block-description ol {
    padding-left: 1.35em;
}

.about-block-description li + li {
    margin-top: 6px;
}

.about-block-description a {
    color: var(--primary, #2563eb);

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.about-block-description a:hover {
    text-decoration-thickness: 2px;
}

.about-block-description a:focus-visible {
    border-radius: 2px;
    outline: 2px solid var(--primary, #2563eb);
    outline-offset: 3px;
}

.about-block-description img,
.about-block-description video {
    max-width: 100%;
    height: auto;

    border-radius: 10px;
}

.about-block-description pre {
    max-width: 100%;
    overflow-x: auto;
}

.about-pagination-info {
    margin: 24px 0 12px;

    color: var(--text-faint, #94a3b8);

    font-size: 0.83rem;
    line-height: 1.5;
    text-align: center;
}

.about-empty {
    display: grid;
    justify-items: center;

    padding: clamp(38px, 7vw, 68px) 24px;

    border: 1px dashed var(--border-strong, #b8c5d4);
    border-radius: 18px;

    background:
        radial-gradient(
            circle at 50% 0,
            rgb(37 99 235 / 7%),
            transparent 48%
        ),
        var(--surface, #ffffff);

    text-align: center;
}

.about-empty > div {
    display: grid;
    place-items: center;

    width: 66px;
    height: 66px;
    margin-bottom: 18px;

    border: 1px solid rgb(37 99 235 / 15%);
    border-radius: 19px;

    background: var(--bg-soft, #eff6ff);
    color: var(--primary, #2563eb);

    font-size: 2rem;
    line-height: 1;
}

.about-empty h2 {
    margin: 0;

    color: var(--text, #172033);

    font-size: 1.35rem;
    line-height: 1.3;
}

.about-empty p {
    max-width: 440px;
    margin: 10px 0 0;

    color: var(--text-soft, #64748b);

    line-height: 1.65;
}

@media (max-width: 720px) {
    .about-hero {
        align-items: flex-start;
        min-height: 0;
        padding: 27px 24px;
        border-radius: 19px;
    }

    .about-hero-symbol {
        width: 78px;
        border-radius: 22px;
        font-size: 2.25rem;
    }

    .about-hero-symbol::after {
        border-radius: 15px;
    }

    .about-block {
        gap: 15px;
        border-radius: 16px;
    }
}

@media (max-width: 520px) {
    .about-hero {
        flex-direction: column-reverse;
        gap: 21px;
        padding: 25px 21px;
    }

    .about-hero-symbol {
        width: 60px;
        border-radius: 18px;
        font-size: 1.8rem;
    }

    .about-hero-symbol::after {
        inset: 6px;
        border-radius: 12px;
    }

    .about-hero .eyebrow {
        margin-bottom: 12px;
    }

    .about-hero p:not(.eyebrow) {
        margin-top: 14px;
    }

    .about-block {
        grid-template-columns: 43px minmax(0, 1fr);
        gap: 13px;
        padding: 19px 16px;
    }

    .about-block-icon {
        width: 43px;
        height: 43px;
        border-radius: 13px;
        font-size: 1.25rem;
    }

    .about-block-content h2 {
        margin-top: 2px;
    }
}

html[data-theme="dark"] .about-hero,
html[data-theme="dark"] .about-block,
html[data-theme="dark"] .about-empty {
    box-shadow: none;
}

html[data-theme="dark"] .about-hero-symbol,
html[data-theme="dark"] .about-block-icon,
html[data-theme="dark"] .about-empty > div {
    background: var(--bg-soft, #172033);
}

html[data-theme="dark"] .about-block-description {
    color: var(--text-soft, #cbd5e1);
}

@media (prefers-reduced-motion: reduce) {
    .about-block,
    .about-block::before {
        transition: none;
    }

    .about-block:hover {
        transform: none;
    }
}
