/**
 * Dom Belarus Link Page — frontend.css
 * Version: 0.1.8
 * Scope: стили публичной разводной страницы.
 * AI note: файл автономный, без внешних шрифтов/CDN. Не завязан на тему.
 */

body.dblp-clean-body {
    margin: 0;
    padding: 0;
    background: #f6efe3;
}

body.dblp-clean-body #wpadminbar {
    display: none !important;
}

.dblp-shell {
    --dblp-accent: #8b5a2b;
    --dblp-bg: #f6efe3;
    --dblp-card: #fffaf1;
    --dblp-text: #2d2015;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 22px 14px;
    color: var(--dblp-text);
    background:
        radial-gradient(circle at top left, rgba(139, 90, 43, .18), transparent 34%),
        linear-gradient(180deg, var(--dblp-bg), #fff8ec 60%, var(--dblp-bg));
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-sizing: border-box;
}

.dblp-shell *,
.dblp-shell *::before,
.dblp-shell *::after {
    box-sizing: border-box;
}

.dblp-bg-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .35;
    background-image:
        linear-gradient(90deg, rgba(139, 90, 43, .04) 1px, transparent 1px),
        linear-gradient(0deg, rgba(139, 90, 43, .035) 1px, transparent 1px);
    background-size: 22px 22px;
}

.dblp-card {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(139, 90, 43, .18);
    border-radius: 30px;
    background: color-mix(in srgb, var(--dblp-card) 94%, white 6%);
    box-shadow: 0 22px 70px rgba(67, 45, 24, .18);
}

.dblp-hero {
    min-height: 340px;
    background:
        linear-gradient(180deg, rgba(45,32,21,.04), rgba(45,32,21,.20)),
        radial-gradient(circle at top, rgba(139,90,43,.22), transparent 50%);
    background-position: center;
    background-size: cover;
}

.dblp-hero-inner {
    min-height: 340px;
    padding: 34px 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,250,241,.92));
}

.dblp-avatar {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 26px;
    border: 3px solid rgba(255,255,255,.94);
    box-shadow: 0 12px 34px rgba(45,32,21,.22);
    background: var(--dblp-card);
    margin-bottom: 18px;
}

.dblp-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--dblp-accent), #3b2719);
    font-weight: 900;
    letter-spacing: .04em;
}

.dblp-eyebrow {
    display: none;
    margin: 0 0 10px;
    padding: 7px 11px;
    border: 1px solid rgba(139, 90, 43, .24);
    border-radius: 999px;
    background: rgba(255,255,255,.68);
    color: var(--dblp-accent);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.dblp-hero h1 {
    margin: 0;
    max-width: 430px;
    color: var(--dblp-text);
    font-size: clamp(31px, 8vw, 46px);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 550;
}

.dblp-description {
    max-width: 440px;
    margin-top: 14px;
    color: color-mix(in srgb, var(--dblp-text) 86%, white 14%);
    font-size: 16px;
    line-height: 1.48;
}

.dblp-description p {
    margin: 0;
}

.dblp-links {
    display: grid;
    gap: 11px;
    padding: 18px 16px 10px;
}

.dblp-link {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 14px;
    align-items: center;
    min-height: 70px;
    padding: 16px 18px;
    border: 1px solid rgba(139, 90, 43, .18);
    border-radius: 22px;
    color: var(--dblp-text);
    text-decoration: none !important;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 10px 26px rgba(67,45,24,.07);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.dblp-link:hover,
.dblp-link:focus {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--dblp-accent) 58%, white 42%);
    color: var(--dblp-text);
    box-shadow: 0 14px 34px rgba(67,45,24,.13);
    outline: none;
}

.dblp-link-main {
    font-size: 17px;
    font-weight: 900;
    line-height: 1.14;
}

.dblp-link-note {
    grid-column: 1 / 2;
    color: color-mix(in srgb, var(--dblp-text) 64%, white 36%);
    font-size: 13px;
    line-height: 1.25;
}

.dblp-link-arrow {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: #fff;
    background: var(--dblp-accent);
    font-size: 20px;
    line-height: 1;
}

.dblp-videos {
    display: grid;
    gap: 14px;
    margin: 8px 16px 14px;
}

.dblp-video-card {
    padding: 16px;
    border-radius: 24px;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(139, 90, 43, .14);
}

.dblp-video-card h2 {
    margin: 0 0 8px;
    color: var(--dblp-text);
    font-size: 20px;
    line-height: 1.15;
    font-weight: 900;
}

.dblp-video-note {
    margin: 0 0 12px;
    color: color-mix(in srgb, var(--dblp-text) 66%, white 34%);
    font-size: 13px;
    line-height: 1.35;
}

.dblp-video-embed {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 18px;
}

.dblp-video-embed iframe,
.dblp-video-embed embed,
.dblp-video-embed object {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

.dblp-link-video {
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 0 12px;
    min-height: 82px;
    padding: 10px 14px 10px 10px;
}

.dblp-link-thumb {
    grid-column: 1 / 2;
    grid-row: 1 / span 2;
    overflow: hidden;
    display: block;
    width: 82px;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: rgba(45,32,21,.10);
}

.dblp-link-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dblp-link-video-copy {
    grid-column: 2 / 3;
    min-width: 0;
}

.dblp-link-video .dblp-link-note {
    display: block;
    grid-column: auto;
    margin-top: 4px;
}

.dblp-link-video .dblp-link-play {
    grid-column: 3 / 4;
    grid-row: 1 / span 2;
    font-size: 13px;
}

.dblp-video-preview {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    color: #fff;
    text-decoration: none !important;
    background: rgba(45,32,21,.12);
}

.dblp-video-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .18s ease;
}

.dblp-video-preview:hover img,
.dblp-video-preview:focus img {
    transform: scale(1.03);
}

.dblp-video-preview-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.42));
}

.dblp-video-preview-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding-left: 4px;
    border-radius: 999px;
    background: rgba(139,90,43,.94);
    box-shadow: 0 12px 30px rgba(0,0,0,.26);
    font-size: 22px;
    line-height: 1;
    transform: translate(-50%, -50%);
}

.dblp-video-preview-text {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,.34);
}

.dblp-bottom-text {
    margin: 10px 16px 14px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(139, 90, 43, .16);
    border-radius: 24px;
    background: rgba(255, 255, 255, .58);
    box-shadow: 0 10px 24px rgba(67,45,24,.06);
}

.dblp-bottom-text h2 {
    margin: 0 0 9px;
    color: var(--dblp-text);
    font-size: 18px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dblp-bottom-text-content {
    color: color-mix(in srgb, var(--dblp-text) 82%, white 18%);
    font-size: 14px;
    line-height: 1.5;
}

.dblp-bottom-text-content p {
    margin: 0 0 10px;
}

.dblp-bottom-text-content p:last-child {
    margin-bottom: 0;
}

.dblp-bottom-text-content ul,
.dblp-bottom-text-content ol {
    margin: 8px 0 0 18px;
    padding: 0;
}

.dblp-bottom-text-content li {
    margin: 4px 0;
}

.dblp-footer {
    padding: 6px 22px 24px;
    color: color-mix(in srgb, var(--dblp-text) 62%, white 38%);
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
}

@media (min-width: 760px) {
    .dblp-shell {
        padding: 42px 20px;
    }

    .dblp-card {
        border-radius: 36px;
    }

    .dblp-hero-inner {
        padding: 42px 34px 34px;
    }

    .dblp-links {
        padding: 22px 22px 12px;
    }

    .dblp-videos,
    .dblp-bottom-text {
        margin-right: 22px;
        margin-left: 22px;
    }
}

@supports not (color: color-mix(in srgb, white, black)) {
    .dblp-card,
    .dblp-link,
    .dblp-video-card {
        background: #fffaf1;
    }

    .dblp-description,
    .dblp-link-note,
    .dblp-video-note,
    .dblp-bottom-text-content,
    .dblp-footer {
        color: #6f5945;
    }
}

@media (max-width: 380px) {
    .dblp-hero-top {
        align-items: flex-start;
        gap: 12px;
    }

    .dblp-avatar {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
        border-radius: 20px;
    }

    .dblp-hero h1 {
        font-size: clamp(17px, 5.5vw, 28px);
    }
}


/*
 * v0.1.5 hard layout fix:
 * логотип слева, заголовок справа, без лишней пустоты сверху.
 * Специально добавлено в конце файла как override, чтобы перебить предыдущую геометрию.
 */
.dblp-hero {
    min-height: 0 !important;
}

.dblp-hero-inner {
    min-height: 0 !important;
    padding: 22px 18px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
}

.dblp-hero-top {
    display: grid !important;
    grid-template-columns: 68px minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
}

.dblp-avatar {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    border-radius: 18px !important;
    margin: 0 !important;
    align-self: start !important;
}

.dblp-hero h1 {
    margin: 0 !important;
    max-width: none !important;
    align-self: center !important;
    font-size: clamp(16px, 6.1vw, 28px) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.03em !important;
    font-weight: 550 !important;
}

.dblp-description {
    max-width: 100% !important;
    margin-top: 10px !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
}

@media (min-width: 480px) {
    .dblp-hero-inner {
        padding: 24px 22px 20px !important;
    }

    .dblp-hero-top {
        grid-template-columns: 74px minmax(0, 1fr) !important;
        column-gap: 14px !important;
    }

    .dblp-avatar {
        width: 74px !important;
        height: 74px !important;
        min-width: 74px !important;
        border-radius: 20px !important;
    }

    .dblp-hero h1 {
        font-size: clamp(19px, 4.2vw, 31px) !important;
    }
}

@media (max-width: 380px) {
    .dblp-link-video {
        grid-template-columns: 74px minmax(0, 1fr) auto;
        gap: 0 10px;
        padding-left: 9px;
    }

    .dblp-link-thumb {
        width: 74px;
        border-radius: 12px;
    }

    .dblp-video-preview-play {
        width: 50px;
        height: 50px;
        font-size: 19px;
    }
}


/* v0.1.8: загружаемый логотип справа в кнопке вместо стрелки. */
.dblp-link-logo {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255, 255, 255, .68);
    border: 1px solid rgba(139, 90, 43, .12);
}

.dblp-link-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dblp-link-video .dblp-link-logo {
    grid-column: 3 / 4;
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

@media (max-width: 380px) {
    .dblp-link-logo {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .dblp-link-video .dblp-link-logo {
        width: 40px;
        height: 40px;
    }
}
