/*
 * Подключите этот файл в дочерней теме WordPress.
 * Дизайн: светлый, спокойный, с акцентом на фото и читаемость текста.
 */

.anatomy-page {
    --anatomy-ink: #1e293b;
    --anatomy-muted: #64748b;
    --anatomy-line: #e2e8f0;
    --anatomy-accent: #0f766e;
    --anatomy-accent-soft: #ccfbf1;
    --anatomy-paper: #ffffff;
    --anatomy-bg: #f8fafc;

    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 72px) 20px;
    color: var(--anatomy-ink);
    background: var(--anatomy-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.anatomy-page,
.anatomy-page *,
.anatomy-page *::before,
.anatomy-page *::after {
    box-sizing: border-box;
}

.anatomy-card {
    overflow: hidden;
    background: var(--anatomy-paper);
    border: 1px solid var(--anatomy-line);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.anatomy-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    align-items: stretch;
    min-height: 390px;
    background: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 52%, #ffffff 100%);
}

.anatomy-hero--without-image {
    grid-template-columns: minmax(0, 1fr);
    min-height: 320px;
}

.anatomy-hero--without-image .anatomy-hero__content {
    max-width: 820px;
}

.anatomy-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 6vw, 76px);
}

.anatomy-eyebrow,
.anatomy-info__label {
    color: var(--anatomy-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.anatomy-eyebrow {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 18px;
    padding: 8px 12px;
    background: var(--anatomy-accent-soft);
    border-radius: 999px;
}

.anatomy-title {
    max-width: 680px;
    margin: 0;
    color: var(--anatomy-ink);
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-transform: none;
}

.anatomy-lead {
    max-width: 580px;
    margin: 24px 0 0;
    color: var(--anatomy-muted);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.65;
}

.anatomy-hero__image {
    min-height: 320px;
    margin: 0;
}

.anatomy-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.anatomy-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: clamp(28px, 6vw, 82px);
    padding: clamp(30px, 6vw, 76px);
}

.anatomy-sidebar {
    align-self: start;
    position: sticky;
    top: 24px;
}

.anatomy-fact {
    display: grid;
    gap: 8px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--anatomy-line);
}

.anatomy-fact__number {
    color: var(--anatomy-accent);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.anatomy-fact__text {
    color: var(--anatomy-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.anatomy-toc {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.anatomy-toc a {
    color: var(--anatomy-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 160ms ease, transform 160ms ease;
}

.anatomy-toc a:hover,
.anatomy-toc a:focus-visible {
    color: var(--anatomy-accent);
    transform: translateX(3px);
}

.anatomy-content {
    min-width: 0;
    font-size: 1.08rem;
    line-height: 1.8;
}

.anatomy-content > :first-child {
    margin-top: 0;
}

.anatomy-intro {
    margin: 0 0 30px;
    padding: 20px 22px;
    color: #334155;
    background: #f0fdfa;
    border-left: 4px solid var(--anatomy-accent);
    border-radius: 0 14px 14px 0;
}

.anatomy-intro > :first-child {
    margin-top: 0;
}

.anatomy-intro > :last-child {
    margin-bottom: 0;
}

.anatomy-content h2,
.anatomy-content h3,
.anatomy-content h4 {
    margin-top: 1.9em;
    margin-bottom: 0.55em;
    color: var(--anatomy-ink);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.anatomy-content h2 {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.anatomy-content h3 {
    font-size: 1.45rem;
}

.anatomy-content p,
.anatomy-content ul,
.anatomy-content ol {
    margin: 0 0 1.2em;
}

.anatomy-content a {
    color: var(--anatomy-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.anatomy-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.anatomy-content blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--anatomy-accent);
    background: #f0fdfa;
    color: #334155;
    border-radius: 0 12px 12px 0;
}

.anatomy-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 46px;
    padding-top: 24px;
    border-top: 1px solid var(--anatomy-line);
}

.anatomy-info > div {
    display: grid;
    gap: 7px;
    padding: 18px;
    background: #f8fafc;
    border-radius: 14px;
}

.anatomy-info strong {
    font-size: 0.98rem;
    line-height: 1.4;
}

@media (max-width: 760px) {
    .anatomy-page {
        padding: 12px;
    }

    .anatomy-card {
        border-radius: 16px;
    }

    .anatomy-hero {
        display: flex;
        flex-direction: column-reverse;
    }

    .anatomy-hero__image,
    .anatomy-image {
        min-height: 240px;
    }

    .anatomy-layout {
        display: block;
        padding: 30px 24px 36px;
    }

    .anatomy-sidebar {
        position: static;
        margin-bottom: 34px;
    }

    .anatomy-fact {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .anatomy-fact__number {
        font-size: 1.45rem;
    }

    .anatomy-toc {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 18px;
    }

    .anatomy-info {
        grid-template-columns: 1fr;
    }
}
