.smart-article,
.smart-article * {
    box-sizing: border-box;
}

.smart-article {
    width: 100%;
    margin: 0;
    padding-top: var(--nav-h, 72px);
    overflow: hidden;
    color: #142753;
    background: #edf6ff;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.43;
}

.smart-container {
    width: min(100% - 48px, 1540px);
    margin: 0 auto;
}

.smart-top {
    background-color: #dcefff;
    background-image:
        linear-gradient(90deg,
            #dcefff 0%,
            rgba(220, 239, 255, .96) 30%,
            rgba(220, 239, 255, .72) 45%,
            rgba(220, 239, 255, 0) 68%),
        url('assets/bg-smart-1.png');
    background-position: left top, right top;
    background-size: 100% 470px, auto 470px;
    background-repeat: no-repeat;
}

.smart-hero__band {
    min-height: 142px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg,
                rgba(17, 56, 139, .98) 0%,
                rgba(20, 67, 157, .96) 44%,
                rgba(18, 72, 165, .62) 67%,
                rgba(18, 72, 165, .08) 88%);
}

.smart-hero h1 {
    max-width: 1000px;
    margin: 0;
    color: #fff;
    font-size: clamp(27px, 2.35vw, 36px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.025em;
}

.smart-hero h1 span {
    color: #8ab4ff;
}

.smart-section {
    position: relative;
}

.smart-section--young {
    padding: 48px 0 68px;
    background: linear-gradient(180deg, rgba(225, 242, 255, .24), rgba(230, 244, 255, .76));
}

.smart-section--mechanisms {
    padding: 56px 0 82px;
    background:
        radial-gradient(circle at 94% 11%, rgba(83, 173, 246, .48), transparent 37%),
        radial-gradient(circle at 12% 86%, rgba(255, 218, 190, .75), transparent 42%),
        linear-gradient(135deg, #eef6ff 0%, #f4f7fb 43%, #d9efff 100%);
}

.smart-section__content {
    position: relative;
    padding-left: 58px;
}

.smart-section__marker {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 32px;
    /*height: 100%;*/
    min-height: 110px;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}

.smart-section h2 {
    margin: 0 0 24px;
    color: #2f6fed;
    font-size: clamp(18px, 1.6vw, 23px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.012em;
}

.smart-card {
    margin: 0 0 16px;
    padding: 19px 22px;
    border: 1px solid rgba(31, 78, 144, .12);
    border-radius: 13px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 12px rgba(20, 52, 97, .22);
}

.smart-card p {
    margin: 0;
}

.smart-card p + p,
.smart-card ul + p {
    margin-top: 5px;
}

.smart-card ul {
    margin: 3px 0 0;
    padding-left: 21px;
}

.smart-card li {
    padding-left: 2px;
}

.smart-card strong {
    color: #11244e;
    font-weight: 800;
}

.smart-card--intro {
    margin-bottom: 24px;
}

.mechanisms-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.mechanism-card {
    height: 100%;
    margin: 0;
}

.mechanism-card--vascular,
.mechanism-card--inflammation {
    grid-column: span 5;
}

.mechanism-card--cholinergic,
.mechanism-card--metabolic {
    grid-column: span 7;
}

@media (max-width: 900px) {
    .smart-hero__band {
        min-height: 124px;
    }

    .mechanisms-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mechanism-card--vascular,
    .mechanism-card--inflammation,
    .mechanism-card--cholinergic,
    .mechanism-card--metabolic {
        grid-column: 1;
    }
}

@media (max-width: 640px) {
    .smart-article {
        font-size: 14px;
    }

    .smart-container {
        width: min(100% - 32px, 1200px);
    }

    .smart-top {
        background-position: 62% top;
    }

    .smart-hero__band {
        min-height: 118px;
        background: linear-gradient(90deg, rgba(17, 56, 139, .97), rgba(18, 72, 165, .7));
    }

    .smart-hero h1 {
        font-size: 24px;
    }

    .smart-section--young,
    .smart-section--mechanisms {
        padding-top: 38px;
        padding-bottom: 52px;
    }

    .smart-section__content {
        padding-left: 36px;
    }

    .smart-section__marker {
        width: 22px;
    }

    .smart-section h2 {
        margin-bottom: 19px;
        font-size: 18px;
    }

    .smart-card {
        padding: 16px;
        border-radius: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .smart-article {
        scroll-behavior: auto;
    }
}

/* Страница материала smart/1 */
.smart-article {
    background:
        radial-gradient(circle at 100% 18%, rgba(88, 179, 246, .42), transparent 27%),
        radial-gradient(circle at 0 54%, rgba(255, 221, 194, .72), transparent 30%),
        linear-gradient(135deg, #edf7ff 0%, #f4f8fc 48%, #dcefff 100%);
}

.smart-top {
    background-image:
        linear-gradient(90deg,
            #dcefff 0%,
            rgba(220, 239, 255, .96) 30%,
            rgba(220, 239, 255, .72) 45%,
            rgba(220, 239, 255, 0) 68%),
        url('assets/bg-smart-1.png');
    background-position: left top, right top;
    background-size: 100% 470px, auto 470px;
    background-repeat: no-repeat;
}

.smart-hero__band {
    min-height: 240px;
    background: linear-gradient(90deg,
        rgba(12, 49, 131, .98) 0%,
        rgba(18, 64, 157, .94) 45%,
        rgba(19, 79, 178, .55) 69%,
        rgba(19, 79, 178, 0) 91%);
}

.smart-hero h1 {
    max-width: 1000px;
    font-size: clamp(29px, 2.55vw, 40px);
}

.smart-section--young,
.smart-section--mechanisms,
.smart-section--article {
    padding: 42px 0 0;
    background: transparent;
}

.smart-section--young {
    padding-top: 52px;
}

.smart-section--mechanisms {
    padding-bottom: 0;
}

.smart-section--last {
    padding-bottom: 18px;
}

.smart-section__content {
    min-height: 145px;
}

.smart-section__marker {
    /*height: 100%;*/
    min-height: 145px;
}

.smart-section h2 {
    margin-bottom: 18px;
}

.smart-card {
    margin-bottom: 14px;
    padding: 21px 24px;
}

/*.smart-section--young .smart-section__content > .smart-card:nth-of-type(n + 2),*/
/*.smart-section--mechanisms .mechanisms-grid {*/
/*    display: none;*/
/*}*/

.smart-card--intro {
    margin-bottom: 0;
}

.smart-card--product {
    overflow: hidden;
}

.smart-card__lead {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 24px;
    align-items: center;
}

.smart-card__copy {
    min-width: 0;
    margin-top: 12px;
}

.smart-card__product-image {
    display: block;
    width: 100%;
    max-height: 230px;
    object-fit: contain;
    object-position: center;
}

.smart-infographic {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 13px;
    box-shadow: 0 5px 14px rgba(20, 52, 97, .24);
}

.literature {
    padding-top: 26px;
    padding-bottom: 86px;
}

.literature__toggle {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px 58px;
    padding: 0;
    border: 0;
    color: #2f6fed;
    background: transparent;
    font: inherit;
    font-size: clamp(18px, 1.6vw, 23px);
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
}

.literature__arrow {
    display: block;
    width: 15px;
    height: 17px;
    object-fit: fill;
    transition: transform .25s ease;
}

.literature__toggle[aria-expanded='true'] .literature__arrow {
    transform: rotate(90deg);
}

.literature__toggle:focus-visible {
    outline: 2px solid #2f6fed;
    outline-offset: 6px;
    border-radius: 2px;
}

.literature__panel {
    margin-left: 58px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .5s ease, opacity .3s ease, transform .4s ease;
}

.literature__panel.is-open {
    opacity: 1;
    transform: translateY(0);
}

.literature__card {
    margin-bottom: 0;
}

.literature__card ol {
    margin: 0;
    padding-left: 22px;
}

.literature__card li + li {
    margin-top: 7px;
}

@media (max-width: 900px) {
    .smart-top {
        background-size: 100% 420px, auto 420px;
    }

    .smart-hero__band {
        min-height: 205px;
    }

    .smart-card__lead {
        grid-template-columns: minmax(0, 1fr) 260px;
    }
}

@media (max-width: 640px) {
    .smart-top {
        background-position: left top, 62% top;
        background-size: 100% 330px, auto 330px;
    }

    .smart-hero__band {
        min-height: 190px;
    }

    .smart-hero h1 {
        font-size: 23px;
    }

    .smart-section--young,
    .smart-section--mechanisms,
    .smart-section--article {
        padding-top: 34px;
        padding-bottom: 0;
    }

    .smart-section__content {
        min-height: 120px;
    }

    .smart-section__marker {
        min-height: 120px;
    }

    .smart-card__lead {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .smart-card__product-image {
        max-height: 190px;
    }

    .literature {
        padding-top: 32px;
        padding-bottom: 56px;
    }

    .literature__toggle,
    .literature__panel {
        margin-left: 36px;
    }
}

/* Единый фон секций и отдельный слой верхней иллюстрации */
.smart-top {
    position: relative;
    background: transparent;
}

.smart-top::before {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    height: 700px;
    content: '';
    pointer-events: none;
    background-image:
        linear-gradient(90deg,
            #dcefff 0%,
            rgba(220, 239, 255, .96) 30%,
            rgba(220, 239, 255, .72) 45%,
            rgba(220, 239, 255, 0) 68%),
        url('assets/bg-smart-1.png');
    background-position: left top, right top;
    background-size: 100% 100%, max(1050px, 72vw) auto;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.smart-top > * {
    position: relative;
    z-index: 1;
}

.smart-section--young,
.smart-section--mechanisms {
    background: transparent;
}

@media (max-width: 900px) {
    .smart-top::before {
        height: 470px;
        background-size: 100% 100%, clamp(820px, 105vw, 1050px) auto;
    }
}

@media (max-width: 640px) {
    .smart-top::before {
        height: 380px;
        background-position: left top, 62% top;
        background-size: 100% 100%, auto 360px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .literature__arrow,
    .literature__panel {
        transition: none;
    }
}
