/*
 * «Фармаконагляд» (page-pharmacovigilance.php, 2026-10-06, the owner's concept) in the language of the applicant hub:
 * square cards with a thin line, icon squares on light teal, Akrobat headings, the teal block of «Єдине вікно».
 * The texts are the page content word for word; js/dec-pv.js = the full-screen view of an infographic.
 */
.dec-pv {
    --pv-teal: #00A9AF;
    --pv-teal-ink: #007F84;
    --pv-teal-50: #e6f6f7;
    --pv-blue: #006AB6;
    --pv-ink: #1f2a30;
    --pv-muted: #5d6d76;
    --pv-line: #e3e8ec;
    --pv-bg: #f6f8fa;
    margin-bottom: 40px;
    color: var(--pv-ink);
}
.dec-pv *,
.dec-pv *::before,
.dec-pv *::after {
    box-sizing: border-box;
}
.dec-pv ul,
.dec-pv ol {
    margin: 0;
    padding: 0;
    list-style: none;
}
.dec-pv li::before {
    content: none;
}
.dec-pv .title-text.dec-pv__title {
    display: block;
    margin: 0 0 12px;
    line-height: 1.2;
}
.dec-pv__lead {
    margin: 0 0 18px;
    color: var(--pv-muted);
    font-size: 16px;
    line-height: 1.55;
}
.dec-pv__lead strong {
    color: var(--pv-ink);
}
.dec-pv h2.dec-pv__h {
    margin: 30px 0 12px;
    padding: 0;
    border: 0;
    color: var(--pv-ink);
    font-family: 'Akrobat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1.2;
    text-transform: uppercase;
}
.dec-pv__icon {
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--pv-teal-50);
    color: var(--pv-teal-ink);
    font-size: 20px;
}

/* «Повідомте Державний експертний центр» */
.dec-pv__report {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 22px;
    background: var(--pv-teal-ink);
    color: #fff;
}
.dec-pv__report-b {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.dec-pv__report-k {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    opacity: .85;
}
.dec-pv__report-b b {
    font-family: 'Akrobat', sans-serif;
    font-size: 26px;
    line-height: 1.15;
}
.dec-pv__report-s {
    font-size: 14px;
    line-height: 1.45;
    opacity: .9;
}
.dec-pv__report-a {
    flex: 0 0 270px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dec-pv .dec-pv__btn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 10px;
    padding: 12px 14px;
    background: #fff;
    color: var(--pv-teal-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}
.dec-pv .dec-pv__btn small {
    flex-basis: 100%;
    padding-left: 25px;
    color: var(--pv-muted);
    font-size: 12px;
    font-weight: 400;
}
.dec-pv .dec-pv__btn:hover {
    background: var(--pv-teal-50);
    color: var(--pv-teal-ink);
    text-decoration: none;
}
.dec-pv .dec-pv__btn--ghost {
    border: 1px solid rgba(255, 255, 255, .6);
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.dec-pv .dec-pv__btn--ghost:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}
.dec-pv a:focus-visible {
    outline: 2px solid var(--pv-teal);
    outline-offset: 2px;
}
.dec-pv__report a:focus-visible {
    outline-color: #fff;
}

/* «Для кого» */
.dec-pv__aud {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}
.dec-pv__card {
    padding: 14px 16px 8px;
    border: 1px solid var(--pv-line);
    background: #fff;
}
.dec-pv__card-h {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}
.dec-pv .dec-pv__card-h h3 {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: 'Akrobat', sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}
.dec-pv__card li + li {
    border-top: 1px solid var(--pv-line);
}
.dec-pv__card a {
    display: block;
    padding: 8px 0;
    color: var(--pv-ink);
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
}
.dec-pv__card a:hover {
    color: var(--pv-teal-ink);
    text-decoration: underline;
}

/* «Інфографіка» */
.dec-pv__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.dec-pv__gallery a {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--pv-line);
    background: #fff;
    color: var(--pv-ink);
    text-decoration: none;
    transition: box-shadow .2s, border-color .2s;
}
.dec-pv__gallery a:hover {
    border-color: var(--pv-teal);
    box-shadow: 0 8px 22px rgba(0, 60, 80, .10);
    color: var(--pv-ink);
    text-decoration: none;
}
.dec-pv__thumb {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--pv-bg);
}
#content .dec-pv__thumb img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: 50% 50%;
}
#content .dec-pv__thumb--top img {
    object-position: 50% 0;
}
.dec-pv__cap {
    padding: 10px 12px 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}
.dec-pv__gallery a:hover .dec-pv__cap {
    color: var(--pv-teal-ink);
}

/* facts */
.dec-pv__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
    border: 1px solid var(--pv-line);
    background: var(--pv-teal-50);
}
.dec-pv__facts li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
}
.dec-pv__facts li + li {
    border-left: 1px solid #cfe9ea;
}
.dec-pv__facts b {
    color: var(--pv-teal-ink);
    font-family: 'Akrobat', sans-serif;
    font-size: 30px;
    line-height: 1;
}
.dec-pv__facts span {
    color: var(--pv-muted);
    font-size: 13px;
    line-height: 1.4;
}

/* «Про фармаконагляд» */
.dec-pv__about {
    padding: 18px 20px;
    border: 1px solid var(--pv-line);
    background: #fff;
    font-size: 15px;
    line-height: 1.6;
}
.dec-pv__about p {
    margin: 0 0 12px;
}
.dec-pv__about p:last-child {
    margin-bottom: 0;
}
.dec-pv__about .dec-pv__steps-h {
    margin: 16px 0 6px;
}
.dec-pv__steps {
    counter-reset: dec-pv-step;
    margin-bottom: 12px !important;
}
.dec-pv__steps li {
    position: relative;
    padding: 8px 0 8px 40px;
    border-bottom: 1px solid var(--pv-line);
    counter-increment: dec-pv-step;
}
.dec-pv__steps li:last-child {
    border-bottom: 0;
}
.dec-pv .dec-pv__steps li::before {
    content: counter(dec-pv-step);
    position: absolute;
    top: 7px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--pv-teal-50);
    color: var(--pv-teal-ink);
    font-family: 'Akrobat', sans-serif;
    font-weight: 700;
}
.dec-pv__about .dec-pv__note {
    padding: 12px 14px;
    border-left: 3px solid var(--pv-teal);
    background: var(--pv-teal-50);
}
.dec-pv__edit {
    margin: 16px 0 0;
    font-size: 14px;
}

/* the full-screen view of an infographic (js/dec-pv.js) */
.dec-pv-view {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    background: rgba(12, 22, 28, .94);
    color: #fff;
}
.dec-pv-view[hidden] {
    display: none;
}
.dec-pv-view__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}
.dec-pv-view__t {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}
.dec-pv-view button,
.dec-pv-view a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    cursor: pointer;
}
.dec-pv-view button:hover,
.dec-pv-view a:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}
.dec-pv-view__img {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0 14px 14px;
    text-align: center;
}
.dec-pv-view__img img {
    max-width: 100%;
    height: auto;
    background: #fff;
}
.dec-pv-view .dec-pv-view__nav {
    position: absolute;
    top: 50%;
    background: rgba(12, 22, 28, .75);
}
@media (min-width: 768px) {
    .dec-pv-view__img img { /* the whole picture on the screen; «Відкрити окремо» = full size */
        width: auto;
        max-height: calc(100vh - 80px);
    }
    .dec-pv-view__img {
        padding: 0 64px 14px;
    }
}
.dec-pv-view__nav--prev {
    left: 10px;
}
.dec-pv-view__nav--next {
    right: 10px;
}

@media (max-width: 767.98px) {
    .dec-pv__report {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    .dec-pv__report-a {
        flex-basis: auto;
    }
    .dec-pv__report-b b {
        font-size: 22px;
    }
    .dec-pv__aud {
        grid-template-columns: minmax(0, 1fr);
    }
    .dec-pv__gallery {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
    }
    .dec-pv__cap {
        padding: 8px 10px 10px;
        font-size: 13px;
    }
    .dec-pv__facts {
        grid-template-columns: minmax(0, 1fr);
    }
    .dec-pv__facts li + li {
        border-top: 1px solid #cfe9ea;
        border-left: 0;
    }
    .dec-pv__about {
        padding: 14px;
    }
    .dec-pv-view__nav {
        top: auto;
        bottom: 12px;
        background: rgba(12, 22, 28, .7) !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .dec-pv__gallery a {
        transition: none;
    }
}
@media print {
    .dec-pv__report-a,
    .dec-pv-view {
        display: none !important;
    }
}
