/* Внутренние страницы: тёмный холст как у music-generator.online.
   Оттенок страницы задаёт class-landing.php: --pr-page-accent, --pr-page-glow, --pr-page-wash. */

body.pr-inner-page,
body.pr-inner-page.ast-plain-container {
    --pr-ink: #f4f4f5;
    --pr-muted: #a1a1aa;
    --pr-line: rgba(255, 255, 255, 0.08);
    --pr-card: #14141a;
    background:
        radial-gradient(78% 46% at 50% -10%, var(--pr-page-glow, rgba(168, 85, 247, 0.48)), transparent 62%),
        radial-gradient(34% 26% at 100% 0%, color-mix(in srgb, var(--pr-page-accent, #c084fc) 24%, transparent), transparent 70%),
        var(--pr-page-wash, #07060b) !important;
    color: var(--pr-ink);
    color-scheme: dark;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

body.pr-inner-page #page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: transparent !important;
    color: var(--pr-ink);
}

body.pr-inner-page .site-content {
    flex: 1 0 auto;
}

body.pr-inner-page .site-content,
body.pr-inner-page .ast-container,
body.pr-inner-page main,
body.pr-inner-page .entry-content,
body.pr-inner-page .wp-block-group,
body.pr-inner-page .ast-plain-container,
body.pr-inner-page.ast-plain-container .site-content {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--pr-ink);
}

body.pr-inner-page #content > .ast-container {
    max-width: 800px;
    padding-top: 1.75rem;
    padding-bottom: 4.5rem;
}

body.pr-inner-page .site-header,
body.pr-inner-page .site-footer,
body.pr-inner-page .main-header-bar,
body.pr-inner-page .ast-primary-header-bar,
body.pr-inner-page .ast-above-header-bar,
body.pr-inner-page .ast-below-header-bar,
body.pr-inner-page .ast-mobile-header-wrap .main-header-bar,
body.pr-inner-page .ast-mobile-header-wrap .ast-mobile-header-content,
body.pr-inner-page .ast-desktop-header-content,
body.pr-inner-page .site-below-footer-wrap,
body.pr-inner-page .site-primary-footer-wrap,
body.pr-inner-page .site-above-footer-wrap,
body.pr-inner-page .site-header .has-background,
body.pr-inner-page .site-footer .has-background {
    background: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: var(--pr-ink) !important;
}

body.pr-inner-page .site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: color-mix(in srgb, var(--pr-page-wash, #07060b) 82%, transparent) !important;
    border-bottom: 1px solid var(--pr-line);
    backdrop-filter: blur(18px);
}

body.pr-inner-page .site-footer {
    border-top: 1px solid var(--pr-line);
}

body.pr-inner-page .site-header .ast-builder-grid-row {
    align-items: center;
    min-height: 0;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

body.pr-inner-page .site-title,
body.pr-inner-page .site-title a {
    color: #fff !important;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 650 !important;
    letter-spacing: -0.02em;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

body.pr-inner-page .main-header-menu .menu-link,
body.pr-inner-page .ast-builder-menu-1 .menu-item > .menu-link,
body.pr-inner-page .ast-builder-menu-mobile .menu-item > .menu-link {
    color: #a1a1aa !important;
    background: transparent !important;
    font-size: 0.94rem;
    font-weight: 500;
    text-decoration: none;
}

body.pr-inner-page .ast-builder-menu-1 .menu-link:hover,
body.pr-inner-page .ast-builder-menu-1 .main-header-menu > .menu-item:hover > .menu-link,
body.pr-inner-page .ast-builder-menu-mobile .menu-link:hover,
body.pr-inner-page .ast-builder-menu-mobile .main-header-menu > .menu-item:hover > .menu-link {
    color: #fff !important;
}

body.pr-inner-page .main-header-menu > .current-menu-item > .menu-link,
body.pr-inner-page .ast-builder-menu-1 .menu-item.current-menu-item > .menu-link,
body.pr-inner-page .ast-builder-menu-mobile .menu-item.current-menu-item > .menu-link {
    color: #fff !important;
    text-decoration: underline;
    text-decoration-color: var(--pr-page-accent, #c084fc);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.4em;
}

body.pr-inner-page .main-header-menu .sub-menu,
body.pr-inner-page.ast-desktop .main-header-menu .sub-menu,
body.pr-inner-page.ast-header-break-point .ast-mobile-header-content {
    background: #100e16 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.pr-inner-page.ast-header-break-point .main-header-menu {
    background: transparent !important;
}

body.pr-inner-page.ast-header-break-point .main-header-menu .menu-link {
    padding: 0.85rem 0 !important;
    border-color: var(--pr-line) !important;
}

body.pr-inner-page .menu-toggle,
body.pr-inner-page .ast-mobile-menu-trigger-minimal,
body.pr-inner-page .ast-mobile-popup-drawer .menu-toggle-close,
body.pr-inner-page .ast-mobile-svg {
    color: #fff !important;
    fill: #fff !important;
    background: transparent !important;
}

body.pr-inner-page .site-footer,
body.pr-inner-page .ast-footer-copyright,
body.pr-inner-page .ast-footer-copyright p,
body.pr-inner-page .site-footer-section {
    color: #a1a1aa !important;
    font-size: 0.9rem;
    text-align: left;
}

body.pr-inner-page .site-footer a {
    color: #a1a1aa !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

body.pr-inner-page .site-footer a:hover {
    color: #fff !important;
}

body.pr-inner-page .site-header a:focus-visible,
body.pr-inner-page .site-footer a:focus-visible,
body.pr-inner-page .menu-toggle:focus-visible,
body.pr-inner-page .entry-content a:focus-visible,
body.pr-inner-page .entry-content summary:focus-visible {
    outline: 2px solid var(--pr-page-accent, #c084fc);
    outline-offset: 3px;
}

body.pr-inner-page:has(.entry-content h1) .entry-header {
    display: none;
}

body.pr-inner-page .entry-header {
    margin: 0 0 1.15rem;
}

body.pr-inner-page .entry-title,
body.pr-inner-page .entry-content h1 {
    margin: 0 0 0.85rem;
    color: #fff !important;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    font-size: clamp(2.35rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

body.pr-inner-page .entry-content {
    font-size: 1.0625rem;
    line-height: 1.65;
}

body.pr-inner-page .entry-content h2 {
    margin: 2.5rem 0 0.7rem;
    color: #fff;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 680;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

body.pr-inner-page .entry-content p {
    max-width: 42rem;
    margin: 0 0 0.85rem;
    color: #d4d4d8;
}

body.pr-inner-page .entry-content a {
    color: var(--pr-page-accent, #c084fc);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

body.pr-inner-page .entry-content a:hover {
    color: #fff;
}

body.pr-inner-page .pr-landing__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.95rem;
    padding: 0.28rem 0.75rem 0.28rem 0.55rem;
    color: var(--pr-page-accent, #c084fc);
    background: color-mix(in srgb, var(--pr-page-accent, #c084fc) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--pr-page-accent, #c084fc) 38%, transparent);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

body.pr-inner-page .pr-landing__kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pr-page-accent, #c084fc);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--pr-page-accent, #c084fc) 55%, transparent);
    animation: pr-inner-pulse 1.8s ease-out infinite;
}

body.pr-inner-page .pr-landing__lead {
    max-width: 40rem;
    color: var(--pr-muted);
    font-size: 1.12rem;
    line-height: 1.55;
}

body.pr-inner-page .entry-content .pr-player__row.is-current {
    background: color-mix(in srgb, var(--pr-page-accent, #c084fc) 18%, transparent);
}

body.pr-inner-page .entry-content .pr-player button.pr-player__install,
body.pr-inner-page .entry-content .pr-player button.pr-player__install:hover,
body.pr-inner-page .entry-content .pr-player button.pr-player__install:focus {
    color: #14110c;
}

body.pr-inner-page .entry-content .pr-player {
    --pr-accent: var(--pr-page-accent, #c084fc) !important;
    --pr-bg: #121217;
    --pr-bg-2: #1b1b24;
    --pr-ink: #f4f4f5;
    --pr-muted: #a1a1aa;
    --pr-line: rgba(255, 255, 255, 0.08);
    max-width: none;
    margin: 1.2rem 0 0.4rem;
    color: #f4f4f5;
    background:
        radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--pr-page-accent, #c084fc) 26%, transparent), transparent 48%),
        #121217;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

body.pr-inner-page .pr-landing__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 1.15rem 0 0;
    padding: 0;
    list-style: none;
}

body.pr-inner-page .pr-landing__facts li {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.75rem;
    color: #e4e4e7;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 0.86rem;
}

body.pr-inner-page .pr-landing__steps {
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: pr-step;
}

body.pr-inner-page .pr-landing__steps li {
    display: grid;
    grid-template-columns: 1.85rem 1fr;
    gap: 0.75rem;
    align-items: start;
    max-width: 42rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--pr-line);
    counter-increment: pr-step;
}

body.pr-inner-page .pr-landing__steps li::before {
    content: counter(pr-step);
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    margin-top: 0.05rem;
    color: #14110c;
    background: var(--pr-page-accent, #c084fc);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

body.pr-inner-page .entry-content p:has(> strong:first-child) {
    display: grid;
    grid-template-columns: 9.5rem 1fr;
    gap: 0.75rem;
    max-width: 42rem;
    margin: 0;
    padding: 0.72rem 0;
    border-top: 1px solid var(--pr-line);
    color: #e4e4e7;
}

body.pr-inner-page .entry-content p:has(> strong:first-child) strong {
    color: var(--pr-muted);
    font-weight: 600;
}

body.pr-inner-page .entry-content .wp-block-details {
    max-width: 42rem;
    margin: 0.55rem 0 0;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

body.pr-inner-page .entry-content .wp-block-details summary {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    padding: 0.95rem 0;
    color: #fff;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}

body.pr-inner-page .entry-content .wp-block-details summary::-webkit-details-marker {
    display: none;
}

body.pr-inner-page .entry-content .wp-block-details summary::before {
    content: "+";
    flex: 0 0 auto;
    color: var(--pr-page-accent, #c084fc);
    font-weight: 700;
}

body.pr-inner-page .entry-content .wp-block-details[open] summary::before {
    content: "–";
}

body.pr-inner-page .entry-content .wp-block-details p {
    margin: 0 0 1rem 1.55rem;
    color: var(--pr-muted);
}

body.pr-inner-page ::selection {
    background: color-mix(in srgb, var(--pr-page-accent, #c084fc) 45%, transparent);
    color: #fff;
}

@keyframes pr-inner-pulse {
    70% { box-shadow: 0 0 0 7px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

@media (max-width: 640px) {
    body.pr-inner-page .entry-content p:has(> strong:first-child) {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    body.pr-inner-page .entry-content .wp-block-details p {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.pr-inner-page .pr-landing__kicker::before {
        animation: none;
    }
}
