/* Surgery.Moscow — редакционный слой для профессиональных материалов.
   Подключается только на 10 новых статьях (ID 7067–7076). */

body.sm-editorial article {
    margin-top: 24px;
}

/* --- Обложка ------------------------------------------------------- */
body.sm-editorial .featured-image {
    position: relative;
    height: clamp(300px, 42vw, 520px);
    overflow: hidden;
    border-radius: 0 0 26px 26px;
    background: #0d2230;
}

body.sm-editorial .featured-image a {
    display: block;
    height: 100%;
}

body.sm-editorial .featured-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center 45%;
    filter: saturate(.86) contrast(1.06) brightness(.92);
    transition: transform .8s ease;
}

body.sm-editorial .featured-image:hover img {
    transform: scale(1.03);
}

body.sm-editorial .featured-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 31, 45, .05) 0%, rgba(8, 31, 45, .15) 45%, rgba(8, 31, 45, .72) 100%);
    pointer-events: none;
}

body.sm-editorial .featured-image::before {
    content: "SURGERY.MOSCOW  /  ПРОФЕССИОНАЛЬНЫЙ РАЗБОР";
    position: absolute;
    z-index: 2;
    left: clamp(20px, 5vw, 64px);
    bottom: 26px;
    color: #fff;
    font: 600 11px/1.4 "Open Sans", Arial, sans-serif;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}

/* --- Статья как журнальная страница -------------------------------- */
body.sm-editorial .article-content {
    position: relative;
    z-index: 3;
    max-width: 940px;
    margin: -64px auto 0;
    padding: 46px clamp(22px, 5vw, 64px) 60px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(12, 38, 53, .14);
}

body.sm-editorial .above-entry-meta {
    margin-bottom: 12px;
}

body.sm-editorial .above-entry-meta .cat-links a {
    background: #0f5d78 !important;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

body.sm-editorial .entry-header {
    margin-bottom: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e3ebef;
}

body.sm-editorial .entry-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4.2vw, 50px);
    line-height: 1.14;
    letter-spacing: -.015em;
    color: #102b3a;
    margin: 0 0 14px;
}

body.sm-editorial .below-entry-meta {
    font-size: 12px;
    color: #6c7c86;
    letter-spacing: .04em;
}

body.sm-editorial .below-entry-meta a {
    color: #4a6574;
}

body.sm-editorial .entry-content {
    max-width: 740px;
    margin: 0 auto;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.82;
    color: #24333d;
}

body.sm-editorial .entry-content p {
    margin: 0 0 24px;
}

/* Лид-абзац */
body.sm-editorial .entry-content > p.lead:first-child {
    font-size: clamp(20px, 2.2vw, 24px);
    line-height: 1.6;
    color: #0d4a63;
    padding: 4px 0 4px 26px;
    border-left: 3px solid #d2a24c;
    margin-bottom: 38px;
}

/* Буквица */
body.sm-editorial .entry-content > p.lead:first-child + h2 + p::first-letter {
    float: left;
    font-family: Georgia, serif;
    font-size: 68px;
    line-height: .82;
    padding: 8px 10px 0 0;
    color: #0f5d78;
}

/* Заголовки разделов */
body.sm-editorial .entry-content h2 {
    counter-increment: sm-section;
    position: relative;
    margin: 48px 0 20px;
    padding-top: 22px;
    border-top: 1px solid #dde7ec;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.01em;
    color: #102b3a;
}

body.sm-editorial .entry-content h2::before {
    content: "0" counter(sm-section);
    display: block;
    margin-bottom: 8px;
    font: 700 11px/1 "Open Sans", Arial, sans-serif;
    letter-spacing: .2em;
    color: #d2a24c;
}

body.sm-editorial .entry-content {
    counter-reset: sm-section;
}

body.sm-editorial .entry-content h2.sm-nocount::before,
body.sm-editorial .entry-content .sm-faq h2::before {
    display: none;
}

/* Списки */
body.sm-editorial .entry-content ul,
body.sm-editorial .entry-content ol {
    margin: 0 0 28px;
    padding-left: 26px;
}

body.sm-editorial .entry-content li {
    margin-bottom: 10px;
}

body.sm-editorial .entry-content strong {
    color: #0f4359;
}

/* --- Изображения и подписи ---------------------------------------- */
body.sm-editorial .entry-content .sm-figure {
    margin: 40px -60px;
}

body.sm-editorial .entry-content .sm-figure img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(10, 35, 50, .16);
}

body.sm-editorial .entry-content .sm-figure--detail img {
    height: 260px;
    object-position: 72% 38%;
    filter: saturate(.9) contrast(1.08);
}

body.sm-editorial .entry-content .sm-figure figcaption {
    margin-top: 12px;
    font: 12px/1.6 "Open Sans", Arial, sans-serif;
    color: #788992;
    letter-spacing: .02em;
}

body.sm-editorial .entry-content .sm-figure figcaption::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 1px;
    margin-right: 10px;
    vertical-align: middle;
    background: #d2a24c;
}

/* --- Выдержка ------------------------------------------------------ */
body.sm-editorial .entry-content .sm-pull {
    position: relative;
    margin: 44px -30px 44px 30px;
    padding: 6px 0 6px 28px;
    border-left: 2px solid #d2a24c;
    font-family: Georgia, serif;
    font-size: clamp(22px, 2.6vw, 29px);
    line-height: 1.45;
    font-style: italic;
    color: #0f4359;
}

body.sm-editorial .entry-content .sm-pull::before {
    content: "“";
    position: absolute;
    left: 12px;
    top: -14px;
    font-size: 60px;
    color: #d2a24c;
    opacity: .5;
}

/* --- Связанные материалы ------------------------------------------ */
body.sm-editorial .entry-content h2:has(+ ul) + ul {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

body.sm-editorial .entry-content h2:has(+ ul) + ul li {
    margin: 0;
}

body.sm-editorial .entry-content h2:has(+ ul) + ul a {
    display: block;
    height: 100%;
    padding: 16px 18px;
    border: 1px solid #dde7ec;
    border-radius: 10px;
    background: #f8fafb;
    font: 600 14px/1.5 "Open Sans", Arial, sans-serif;
    color: #174f66;
    text-decoration: none;
    transition: border-color .2s, transform .2s;
}

body.sm-editorial .entry-content h2:has(+ ul) + ul a:hover {
    border-color: #0f5d78;
    transform: translateY(-2px);
}

/* --- Карточка товара ----------------------------------------------- */
body.sm-editorial .entry-content .sm-product {
    margin: 40px 0;
    padding: 26px 28px;
    border: 1px solid #dde7ec;
    border-left: 4px solid #d2a24c;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7fafb 0%, #fff 70%);
    box-shadow: 0 10px 26px rgba(12, 38, 53, .07);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
}

body.sm-editorial .entry-content .sm-product__title {
    margin: 0 0 10px;
    font: 700 12px/1.4 "Open Sans", Arial, sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #a6803a;
}

body.sm-editorial .entry-content .sm-product__desc {
    font-size: 16px;
    color: #1d3543;
}

body.sm-editorial .entry-content .sm-product__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    background: #0f5d78;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(15, 93, 120, .22);
}

body.sm-editorial .entry-content .sm-product__btn:hover {
    background: #0b475e;
}

/* --- FAQ ----------------------------------------------------------- */
body.sm-editorial .entry-content .sm-faq {
    margin: 52px 0 32px;
    font-family: "Open Sans", Arial, sans-serif;
}

body.sm-editorial .entry-content .sm-faq h2 {
    margin-top: 0;
}

body.sm-editorial .entry-content .sm-faq dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

body.sm-editorial .entry-content .sm-faq dt {
    margin: 0;
    padding: 16px 20px 0;
    border-radius: 10px 10px 0 0;
    background: #eef4f7;
    color: #0f4359;
    font-size: 15px;
}

body.sm-editorial .entry-content .sm-faq dd {
    margin: 0;
    padding: 10px 20px 18px;
    border-radius: 0 0 10px 10px;
    background: #eef4f7;
    color: #3a505d;
    font-size: 14px;
}

/* --- Форма КП ------------------------------------------------------- */
body.sm-editorial .entry-content .sm-cta {
    margin: 48px -30px 32px;
    padding: 36px 34px 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0d3346 0%, #0f5d78 100%);
    color: #fff;
    font-family: "Open Sans", Arial, sans-serif;
    box-shadow: 0 18px 40px rgba(8, 40, 58, .22);
}

body.sm-editorial .entry-content .sm-cta h2 {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    color: #fff;
    font-size: 26px;
}

body.sm-editorial .entry-content .sm-cta h2::before {
    display: none;
}

body.sm-editorial .entry-content .sm-cta p {
    color: #cfe3ec;
    font-size: 14px;
}

body.sm-editorial .entry-content .sm-cta .wpcf7 input,
body.sm-editorial .entry-content .sm-cta .wpcf7 textarea {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .95);
}

body.sm-editorial .entry-content .sm-cta .wpcf7 input[type="submit"] {
    border: 0;
    border-radius: 999px;
    background: #d2a24c;
    color: #1b2b33;
    font-weight: 700;
    padding: 12px 26px;
}

body.sm-editorial .entry-content .sm-cta .wpcf7-response-output {
    border-color: rgba(255, 255, 255, .4) !important;
    color: #fff;
}

/* --- Подпись -------------------------------------------------------- */
body.sm-editorial .entry-content .sm-author {
    margin: 28px 0 0;
    padding: 20px 22px;
    border-top: 1px solid #dde7ec;
    font: 13px/1.7 "Open Sans", Arial, sans-serif;
    color: #6c7c86;
}

body.sm-editorial .entry-content .sm-author strong {
    color: #0f4359;
}

/* --- Адаптив -------------------------------------------------------- */
@media (max-width: 780px) {
    body.sm-editorial .featured-image {
        height: 260px;
        border-radius: 0 0 18px 18px;
    }

    body.sm-editorial .article-content {
        margin-top: -36px;
        padding: 28px 18px 40px;
        border-radius: 16px;
    }

    body.sm-editorial .entry-content {
        font-size: 17px;
    }

    body.sm-editorial .entry-content .sm-figure,
    body.sm-editorial .entry-content .sm-pull,
    body.sm-editorial .entry-content .sm-cta {
        margin-left: 0;
        margin-right: 0;
    }

    body.sm-editorial .entry-content .sm-figure img {
        height: 220px;
    }

    body.sm-editorial .entry-content .sm-pull {
        font-size: 21px;
    }
}
