/*
 * Zigmund magazine redesign — homepage / journal shell.
 * Desktop geometry follows the 1440px Figma frame (1280px content + 80px gutters).
 */

:root {
    --zmg-bg: #f7f7f7;
    --zmg-card: #fff;
    --zmg-text: #242424;
    --zmg-muted: #5f5c57;
    --zmg-subtle: #9e9a94;
    --zmg-orange: #ff5a11;
    --zmg-purple: #976bff;
    --zmg-radius: 24px;
    --zmg-gap: 24px;
    --zmg-container: 1280px;
}

html { scroll-behavior: smooth; }
body.op-new-journal-preview {
    margin: 0;
    padding-top: 80px !important;
    background: var(--zmg-bg);
    color: var(--zmg-text);
    font-family: "PT Root UI", "Opora PTRootUIWebVF", Arial, sans-serif;
}
body.op-new-journal-preview #page { overflow: clip; }
body.op-new-journal-preview a { text-decoration: none; }

/* Header */
body.op-new-journal-preview #op-header.op-journal-header {
    height: 80px !important;
    min-height: 80px;
    padding: 0 80px !important;
    background: rgba(255,255,255,.97) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: none;
}
body.op-new-journal-preview #op-header.op-journal-header > div { max-width: 1280px; margin: 0 auto; }
body.op-new-journal-preview #menu-header-pc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 217px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    height: 80px;
}
body.op-new-journal-preview .menu-header-left,
body.op-new-journal-preview .menu-header-right,
body.op-new-journal-preview .menu-header-right-l,
body.op-new-journal-preview .menu-header-right-r,
body.op-new-journal-preview .op-journal-nav {
    display: flex;
    align-items: center;
}
body.op-new-journal-preview .op-journal-nav {
    gap: 24px;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0;
}
body.op-new-journal-preview .op-journal-nav--left { justify-content: flex-start; }
body.op-new-journal-preview .op-journal-nav--right { justify-content: flex-end; }
body.op-new-journal-preview .op-journal-nav a { color: #242424; transition: color .18s ease; }
body.op-new-journal-preview .op-journal-nav a:hover { color: var(--zmg-orange); }
body.op-new-journal-preview .menu-header-center {
    width: 217px;
    justify-self: center;
}
body.op-new-journal-preview .menu-header-center a,
body.op-new-journal-preview .menu-header-center svg {
    display: block;
    width: 217px;
    max-width: 217px;
    height: auto;
}
body.op-new-journal-preview .op-journal-header-right {
    justify-content: flex-end;
    gap: 24px;
    min-width: 0;
}
body.op-new-journal-preview .menu-header-right-r { gap: 16px; }
body.op-new-journal-preview .op-select-psy-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-height: 38px;
    padding: 8px 16px !important;
    border-radius: 9999px;
    background: linear-gradient(90deg,#f7a934 0%,#f37645 50%,#f57442 100%) !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 22px;
    letter-spacing: .18px;
    white-space: nowrap;
}
body.op-new-journal-preview .op-journal-header .search-btn { flex: 0 0 40px; width: 40px; height: 40px; }

/* General layout */
.zmg-page {
    position: relative;
    z-index: 10;
    padding: 20px 0 64px;
    background: var(--zmg-bg);
    color: var(--zmg-text);
}
.zmg-container {
    width: var(--zmg-container);
    max-width: calc(100% - 160px);
    margin-right: auto;
    margin-left: auto;
}
.zmg-section {
    position: relative;
    margin-top: 20px;
    padding-top: 40px;
    padding-bottom: 40px;
}
.zmg-section__head {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    margin: 0 0 32px;
}
.zmg-section__head > div { width: 628px; max-width: 100%; }
.zmg-section__head h2 {
    margin: 0;
    color: var(--zmg-text);
    font-size: 32px;
    font-weight: 700;
    line-height: 35.2px;
    letter-spacing: .32px;
}
.zmg-section__head p {
    margin: 12px 0 0;
    color: var(--zmg-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 19.8px;
    letter-spacing: .18px;
}

/* Hero */
.zmg-hero {
    display: grid;
    grid-template-columns: 628px 628px;
    gap: 24px;
    align-items: center;
    min-height: 204px;
    padding-top: 20px;
    padding-bottom: 20px;
}
.zmg-hero__text { width: 628px; max-width: 100%; }
.zmg-hero__text h1 {
    margin: 0;
    max-width: 628px;
    color: var(--zmg-text);
    font-size: 40px;
    font-weight: 700;
    line-height: 44px;
    letter-spacing: .4px;
}
.zmg-hero__text p {
    margin: 16px 0 0;
    color: var(--zmg-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 19.8px;
    letter-spacing: .18px;
}
.zmg-hero__banner {
    position: relative;
    display: block;
    width: 628px;
    height: 164px;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(90deg,#08b567 0%,#69eca8 100%);
}
.zmg-voice-card {
    position: absolute;
    display: block;
    height: 119px;
    border: .5px solid rgba(255,255,255,.7);
    border-radius: 11.78px;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 28px rgba(5,115,68,.08);
}
.zmg-voice-card--back { width: 262px; left: 181px; top: 23px; opacity: .82; }
.zmg-voice-card--front { width: 282px; left: 171px; top: 33px; }
.zmg-voice-card__head {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    height: 28px;
}
.zmg-voice-card__avatar {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
    background: #fe734c;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}
.zmg-voice-card__person { display: flex; flex-direction: column; margin-left: 8px; }
.zmg-voice-card__person strong { font-size: 12px; font-weight: 500; line-height: 13.2px; }
.zmg-voice-card__person small { margin-top: 1px; font-size: 10px; font-weight: 500; line-height: 12px; }
.zmg-voice-card__person b { color: var(--zmg-orange); font-weight: 500; }
.zmg-voice-card__problem {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
    text-align: right;
}
.zmg-voice-card__problem small { color: #a1a1a1; font-size: 10px; font-weight: 500; line-height: 12px; }
.zmg-voice-card__problem strong { color: var(--zmg-text); font-size: 10px; font-weight: 500; line-height: 12px; }
.zmg-voice-card__player {
    position: absolute;
    left: 77px;
    top: 66px;
    display: flex;
    align-items: center;
    width: 130px;
    height: 23px;
    padding: 2px;
    border-radius: 11.5px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.zmg-voice-card__play {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    border-radius: 50%;
    background: #fe734c;
    color: #fff;
    font-size: 7px;
    font-style: normal;
    line-height: 1;
}
.zmg-voice-card__wave {
    position: relative;
    width: 71px;
    height: 12px;
    margin-left: 6px;
    background: repeating-linear-gradient(90deg,#bfbeBC 0 2px,transparent 2px 4px);
    -webkit-mask-image: linear-gradient(0deg,transparent 0,#000 32%,#000 68%,transparent 100%);
    mask-image: linear-gradient(0deg,transparent 0,#000 32%,#000 68%,transparent 100%);
    opacity: .95;
}
.zmg-voice-card__player small { margin-left: auto; margin-right: 6px; color: #5f5c57; font-size: 7px; font-weight: 500; }

/* Article cards */
.zmg-main-grid {
    display: grid;
    grid-template-columns: 628px 628px;
    gap: 24px;
}
.zmg-main-grid__side {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 198px);
    gap: 24px;
}
.zmg-mini-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 24px;
    margin-top: 24px;
}
.zmg-cards-row {
    display: flex;
    gap: 24px;
    width: 100%;
}
.zmg-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: none;
    color: var(--zmg-text);
}
.zmg-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 4px;
    border-radius: 20px;
    background: #ff5a11;
}
.zmg-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}
.zmg-card__badge {
    position: absolute;
    z-index: 3;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: var(--zmg-text);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
}
.zmg-card__badge::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 50%;
    background: #2bb673;
}
.zmg-card__badge--like::before { background: #2486ff; }
.zmg-card__badge--star::before { background: #f7a934; }
.zmg-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px 16px 14px;
}
.zmg-card__topic {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    margin: 0 0 8px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1edff;
    color: #7e60e8;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    white-space: nowrap;
}
.zmg-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--zmg-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 24.2px;
    letter-spacing: .22px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.zmg-card__author {
    display: flex;
    align-items: center;
    min-width: 0;
    margin-top: 12px;
    color: var(--zmg-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 19.8px;
}
.zmg-card__author img,
.zmg-card__author-placeholder {
    display: block;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    margin-right: 8px;
    border-radius: 50%;
    object-fit: cover;
    background: #ececec;
}
.zmg-card__author > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.zmg-card__author-placeholder { position: relative; overflow: hidden; }
.zmg-card__author-placeholder::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 9px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
}
.zmg-card__author-placeholder::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 5px;
    width: 18px;
    height: 12px;
    border-radius: 50% 50% 0 0;
    background: #fff;
}
.zmg-card__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 10px;
    color: #9e9a94;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
}
.zmg-card__meta-item { position: relative; display: inline-flex; align-items: center; white-space: nowrap; }
.zmg-card__meta-item::before { margin-right: 5px; color: #aca89f; font-size: 12px; }
.zmg-card__meta-item--views::before { content: "◉"; }
.zmg-card__meta-item--time::before { content: "◷"; }
.zmg-card__meta-item--date::before { content: "▢"; }
.zmg-card__cta {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 10px;
    color: var(--zmg-orange);
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
}
.zmg-card__cta span { margin-left: 5px; font-size: 19px; }

.zmg-card--lead { height: 420px; }
.zmg-card--lead .zmg-card__image { height: 218px; }
.zmg-card--lead .zmg-card__body { height: 194px; }
.zmg-card--lead .zmg-card__title { -webkit-line-clamp: 2; }

.zmg-card--compact {
    display: grid;
    grid-template-columns: 302px minmax(0,1fr);
    width: 628px;
    height: 198px;
}
.zmg-card--compact .zmg-card__image {
    width: 294px;
    height: 190px;
    margin: 4px;
}
.zmg-card--compact .zmg-card__body {
    height: 198px;
    padding: 16px 16px 12px 12px;
}
.zmg-card--compact .zmg-card__topic { margin-bottom: 6px; font-size: 12px; line-height: 16px; min-height: 22px; }
.zmg-card--compact .zmg-card__title { font-size: 20px; line-height: 22px; -webkit-line-clamp: 3; }
.zmg-card--compact .zmg-card__author { margin-top: 8px; font-size: 15px; line-height: 18px; }
.zmg-card--compact .zmg-card__author img,
.zmg-card--compact .zmg-card__author-placeholder { width: 24px; height: 24px; flex-basis: 24px; }
.zmg-card--compact .zmg-card__meta { gap: 8px; padding-top: 6px; font-size: 11px; line-height: 14px; }

.zmg-card--text { height: 198px; }
.zmg-card--text .zmg-card__image { display: none; }
.zmg-card--text .zmg-card__body { height: 198px; padding: 16px; }
.zmg-card--text .zmg-card__title { font-size: 20px; line-height: 22px; -webkit-line-clamp: 3; }
.zmg-card--text .zmg-card__author { margin-top: 10px; font-size: 15px; line-height: 18px; }
.zmg-card--text .zmg-card__author img,
.zmg-card--text .zmg-card__author-placeholder { width: 24px; height: 24px; flex-basis: 24px; }
.zmg-card--text .zmg-card__meta { gap: 8px; padding-top: 6px; font-size: 11px; line-height: 14px; }

.zmg-card--default,
.zmg-card--recommend {
    flex: 0 0 302px;
    width: 302px;
    height: 398px;
}
.zmg-card--default .zmg-card__image,
.zmg-card--recommend .zmg-card__image { height: 196px; }
.zmg-card--default .zmg-card__body,
.zmg-card--recommend .zmg-card__body { height: 194px; }
.zmg-card--default .zmg-card__title,
.zmg-card--recommend .zmg-card__title { -webkit-line-clamp: 3; }
.zmg-card--recommend .zmg-card__topic { font-size: 12px; line-height: 16px; min-height: 22px; margin-bottom: 6px; }
.zmg-card--recommend .zmg-card__title { font-size: 19px; line-height: 21px; -webkit-line-clamp: 2; }
.zmg-card--recommend .zmg-card__author { margin-top: 8px; font-size: 15px; line-height: 18px; }
.zmg-card--recommend .zmg-card__author img,
.zmg-card--recommend .zmg-card__author-placeholder { width: 24px; height: 24px; flex-basis: 24px; }
.zmg-card--recommend .zmg-card__meta { gap: 8px; padding-top: 5px; font-size: 11px; line-height: 14px; }
.zmg-card--recommend .zmg-card__cta { margin-top: 7px; font-size: 14px; line-height: 17px; }

/* Explore / tags */
.zmg-explore { overflow: visible; }
.zmg-tabs,
.zmg-special-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    margin: 0 0 32px;
    overflow: hidden;
}
.zmg-tabs button,
.zmg-special-tabs span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 9999px;
    background: #fff;
    color: var(--zmg-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
}
.zmg-tabs button.is-active,
.zmg-special-tabs span.is-active {
    border-color: #f37645;
    background: #fff;
    color: var(--zmg-orange);
}
.zmg-explore__panels { width: 100%; }
.zmg-explore__panel { display: none; width: 100%; }
.zmg-explore__panel.is-active { display: block; }
.zmg-explore__panel .zmg-cards-row,
.zmg-recommend .zmg-cards-row {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
}
.zmg-explore__panel .zmg-cards-row::-webkit-scrollbar,
.zmg-recommend .zmg-cards-row::-webkit-scrollbar { display: none; }
.zmg-explore__controls,
.zmg-recommend__controls,
.zmg-special__controls {
    position: absolute;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}
.zmg-explore__controls { left: -52px; right: -52px; top: 347px; }
.zmg-explore__arrow,
.zmg-recommend__arrow,
.zmg-side-arrow {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    flex: 0 0 40px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 16px rgba(35,35,35,.08);
    color: var(--zmg-orange);
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    pointer-events: auto;
}
.zmg-explore__arrow:disabled,
.zmg-recommend__arrow:disabled,
.zmg-side-arrow.is-disabled { opacity: .45; }
.zmg-more { display: flex; justify-content: center; margin-top: 32px; }
.zmg-more a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 244px;
    min-height: 56px;
    padding: 16px 24px;
    border-radius: 9999px;
    background: linear-gradient(90deg,#f7a934 0%,#f37645 50%,#f57442 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: .18px;
}

/* Special projects */
.zmg-special { overflow: visible; }
.zmg-special-grid {
    display: grid;
    grid-template-columns: repeat(2,628px);
    gap: 24px;
}
.zmg-special__controls { left: -52px; right: -52px; top: 364px; }
.zmg-special__controls .zmg-side-arrow { pointer-events: none; }

/* Recommendation block */
.zmg-recommend {
    position: relative;
    width: 100%;
    height: 794px;
    margin-top: 60px;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(152deg,#2486ff 0%,#8ecdff 100%);
}
.zmg-recommend > .zmg-container { position: relative; height: 100%; padding-top: 80px; }
.zmg-recommend .zmg-section__head { margin-bottom: 32px; }
.zmg-recommend .zmg-section__head h2,
.zmg-recommend .zmg-section__head p { color: #fff; }
.zmg-recommend .zmg-cards-row { padding: 0; }
.zmg-recommend__controls { left: -52px; right: -52px; top: 376px; }
.zmg-recommend__arrow { border: 0; box-shadow: none; }
.zmg-recommend .zmg-more { margin-top: 56px; }
.zmg-more--light a { min-width: 244px; background: #fff; color: var(--zmg-orange); }

/* News */
.zmg-news { margin-top: 20px; }
.zmg-news__tip {
    position: absolute;
    z-index: 5;
    left: 84px;
    top: -85px;
    width: 386px;
    padding: 20px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(36,36,36,.08);
    color: var(--zmg-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 21.6px;
    letter-spacing: .18px;
}
.zmg-news__tip::after {
    content: "";
    position: absolute;
    left: 34px;
    bottom: -12px;
    border-top: 14px solid #fff;
    border-right: 12px solid transparent;
    border-left: 12px solid transparent;
}
.zmg-card--news-lead { height: 492px; }
.zmg-card--news-lead .zmg-card__image { height: 238px; }
.zmg-card--news-lead .zmg-card__body { height: 246px; padding-top: 16px; }
.zmg-card--news-lead .zmg-card__title { -webkit-line-clamp: 2; }
.zmg-main-grid--news .zmg-main-grid__side { grid-template-rows: repeat(2,234px); }
.zmg-card--news-compact {
    display: grid;
    grid-template-columns: 302px minmax(0,1fr);
    width: 628px;
    height: 234px;
}
.zmg-card--news-compact .zmg-card__image { width: 294px; height: 226px; }
.zmg-card--news-compact .zmg-card__body { height: 234px; padding: 16px 16px 12px 12px; }
.zmg-card--news-compact .zmg-card__topic { margin-bottom: 6px; font-size: 12px; line-height: 16px; min-height: 22px; }
.zmg-card--news-compact .zmg-card__title { font-size: 20px; line-height: 22px; -webkit-line-clamp: 3; }
.zmg-card--news-compact .zmg-card__author { margin-top: 8px; font-size: 15px; line-height: 18px; }
.zmg-card--news-compact .zmg-card__author img,
.zmg-card--news-compact .zmg-card__author-placeholder { width: 24px; height: 24px; flex-basis: 24px; }
.zmg-card--news-compact .zmg-card__cta { margin-top: 6px; font-size: 14px; line-height: 17px; }
.zmg-card--news-compact .zmg-card__meta { gap: 8px; padding-top: 5px; font-size: 11px; line-height: 14px; }

/* Tests */
.zmg-test-grid {
    display: grid;
    grid-template-columns: repeat(4,302px);
    gap: 24px;
}
.zmg-test-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 302px;
    height: 358px;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
}
.zmg-test-card__image {
    display: block;
    width: 294px;
    height: 196px;
    margin: 4px;
    overflow: hidden;
    border-radius: 20px;
}
.zmg-test-card__image img { width: 100%; height: 100%; object-fit: cover; }
.zmg-test-card__tags {
    display: flex;
    gap: 6px;
    overflow: hidden;
    margin: 12px 16px 6px;
    min-height: 22px;
}
.zmg-test-card__tags span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1edff;
    color: #7e60e8;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    white-space: nowrap;
}
.zmg-test-card__tags span:nth-child(2) { background: #e9f4ff; color: #2486ff; }
.zmg-test-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 16px;
    color: var(--zmg-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 24.2px;
    letter-spacing: .22px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.zmg-test-card__link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: auto 16px 16px;
    color: var(--zmg-orange);
    font-size: 18px;
    font-weight: 500;
    line-height: 20px;
}
.zmg-test-card__link span { margin-left: 6px; font-size: 21px; }

/* Authors */
.zmg-authors-grid {
    display: grid;
    grid-template-columns: repeat(4,302px);
    gap: 24px;
}
.zmg-author-card {
    position: relative;
    width: 302px;
    height: 460px;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    color: #fff;
}
.zmg-author-card > img {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 294px;
    height: 388px;
    border-radius: 20px;
    object-fit: cover;
}
.zmg-author-card::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 250px;
    left: 4px;
    width: 294px;
    height: 142px;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.72) 100%);
    pointer-events: none;
}
.zmg-author-card__identity {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.zmg-author-card__identity h3,
.zmg-author-card__content h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 20px;
}
.zmg-author-card__identity span {
    display: inline-flex;
    margin-top: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    color: var(--zmg-orange);
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
}
.zmg-author-card__content {
    position: absolute;
    z-index: 2;
    left: 16px;
    right: 16px;
    bottom: 78px;
}
.zmg-author-card__content p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 19.2px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.zmg-author-card__actions {
    position: absolute;
    z-index: 3;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
}
.zmg-author-card__actions a {
    display: inline-flex;
    align-items: center;
    color: var(--zmg-orange);
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
}
.zmg-author-card__book {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(90deg,#f7a934,#f37645 50%,#f57442);
    color: #fff !important;
}
.zmg-author-card__placeholder {
    position: absolute;
    top: 4px;
    left: 4px;
    display: grid;
    width: 294px;
    height: 388px;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(145deg,#f2ecff 0%,#fff3ea 58%,#fff 100%);
    color: var(--zmg-orange);
    font-size: 42px;
    font-weight: 700;
}
.zmg-author-card--no-photo { color: var(--zmg-text); }
.zmg-author-card--no-photo::after { background: linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.9)); }
.zmg-author-card--no-photo .zmg-author-card__identity h3,
.zmg-author-card--no-photo .zmg-author-card__content h3 { color: var(--zmg-text); }
.zmg-author-card--no-photo .zmg-author-card__content p { color: #5f5c57; }
.zmg-author-card--legacy .zmg-author-card__content { bottom: 30px; }

/* Journal banner */
.zmg-app {
    position: relative;
    height: 156px;
    margin-top: 24px;
    overflow: hidden;
    border-radius: 20px;
    background: #eaeaea;
}
.zmg-app__content { position: absolute; z-index: 2; top: 30px; left: 30px; width: 610px; }
.zmg-app__content h2 {
    margin: 0;
    color: var(--zmg-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 24.2px;
    letter-spacing: .22px;
}
.zmg-app__content p {
    margin: 12px 0 0;
    color: #5f5c57;
    font-size: 18px;
    font-weight: 500;
    line-height: 21.6px;
    letter-spacing: .18px;
}
.zmg-app__image {
    position: absolute;
    right: 70px;
    bottom: -46px;
    width: 330px;
    max-width: none;
}

/* Subscription */
.zmg-subscribe {
    position: relative;
    width: 850px;
    max-width: calc(100% - 64px);
    height: 420px;
    margin-top: 60px;
    padding: 30px;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(152deg,#976bff 0%,#c1b1ff 100%);
    color: #fff;
    text-align: center;
}
.zmg-subscribe h2 {
    width: 790px;
    max-width: 100%;
    margin: 0 auto;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    line-height: 35.2px;
    letter-spacing: .32px;
}
.zmg-subscribe p {
    width: 790px;
    max-width: 100%;
    margin: 16px auto 0;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 21.6px;
    letter-spacing: .18px;
}
.zmg-subscribe form {
    display: flex;
    width: 640px;
    max-width: 100%;
    height: 56px;
    margin: 56px auto 0;
    padding: 4px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
}
.zmg-subscribe input {
    min-width: 0;
    flex: 1 1 auto;
    height: 46px;
    padding: 0 18px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}
.zmg-subscribe input::placeholder { color: rgba(255,255,255,.8); opacity: 1; }
.zmg-subscribe button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 155px;
    height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg,#f7a934,#f37645 50%,#f57442);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
}
.zmg-subscribe__socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
}
.zmg-social {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.zmg-social--vk { color: #0077ff; }
.zmg-social--ig { color: #cf3a88; }
.zmg-social--tg { color: #2aabee; }

/* Figma footer */
.zmg-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    color: var(--zmg-text);
    font-family: "PT Root UI", "Opora PTRootUIWebVF", Arial, sans-serif;
}
.zmg-footer__inner {
    width: 1280px;
    max-width: calc(100% - 160px);
    margin: 0 auto;
}
.zmg-footer__main { padding: 64px 0 32px; background: #f4f2f0; }
.zmg-footer__columns {
    display: grid;
    grid-template-columns: 212px repeat(3,minmax(0,1fr));
    gap: 56px;
    align-items: start;
}
.zmg-footer__column { display: flex; flex-direction: column; gap: 32px; }
.zmg-footer__column--intro { gap: 40px; }
.zmg-footer__cta-group { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.zmg-footer__cta {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 9999px;
    background: linear-gradient(90deg,#f7a934,#f37645 50%,#f57442);
    color: #fff !important;
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: .18px;
}
.zmg-footer__accent-link,
.zmg-footer .is-accent { color: var(--zmg-orange) !important; }
.zmg-footer__accent-link { font-size: 16px; font-weight: 500; line-height: 19.2px; }
.zmg-footer__group,
.zmg-footer__download { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.zmg-footer__group h3,
.zmg-footer__download h3 {
    margin: 0 0 8px;
    color: var(--zmg-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: .2px;
}
.zmg-footer__group > a {
    color: #5f5c57;
    font-size: 16px;
    font-weight: 500;
    line-height: 19.2px;
}
.zmg-footer__stores { display: flex; gap: 7px; }
.zmg-footer__qr {
    display: block;
    width: 84px;
    height: 84px;
    padding: 6px;
    overflow: hidden;
    border: 1px solid #f4f2f0;
    border-radius: 8px;
    background: #fff;
}
.zmg-footer__qr img { width: 72px; height: 72px; object-fit: cover; }
.zmg-footer__stores > div { display: flex; flex-direction: column; gap: 6px; }
.zmg-footer__stores > div a { display: block; width: 122px; }
.zmg-footer__help-item { display: flex; flex-direction: column; gap: 12px; }
.zmg-footer__help-item + .zmg-footer__help-item { margin-top: 4px; }
.zmg-footer__phone { color: var(--zmg-orange) !important; font-size: 18px; font-weight: 500; line-height: 20.7px; }
.zmg-footer__help-item p { width: 241px; max-width: 100%; margin: 0; color: #5f5c57; font-size: 16px; font-weight: 500; line-height: 19.2px; }
.zmg-footer__bottomline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 40px;
}
.zmg-footer__socials { display: flex; align-items: center; gap: 16px; }
.zmg-footer__socials a { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; overflow: hidden; }
.zmg-footer__socials svg { width: 32px; height: 32px; }
.zmg-footer__instagram { background: radial-gradient(circle at 30% 100%,#feda75 0,#fa7e1e 25%,#d62976 50%,#962fbf 75%,#4f5bd5 100%); color:#fff!important; font-size:23px; }
.zmg-footer__brandline { display: flex; align-items: center; gap: 74px; }
.zmg-footer__brand { display: flex; width: 197px; flex-direction: column; align-items: flex-start; gap: 8px; }
.zmg-footer__brand > a { display: block; width: 181px; height: 20px; overflow: hidden; }
.zmg-footer__brand svg { width: 181px; height: auto; transform: translateY(0); }
.zmg-footer__brand span { color: #aca89f; font-size: 14px; font-weight: 500; line-height: 16.8px; white-space: nowrap; }
.zmg-footer__age { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #fff; color: #aca89f; font-size: 14px; font-weight: 500; line-height: 16.8px; }

.zmg-footer__seo { padding: 46px 0; background: #e0dfdc; }
.zmg-footer__seo-grid {
    display: grid;
    grid-template-columns: 568px minmax(0,1fr) minmax(0,1fr);
    gap: 56px;
    align-items: start;
}
.zmg-footer__about { margin: 0; color: var(--zmg-text); font-size: 16px; font-weight: 400; line-height: 22.4px; letter-spacing: .16px; }
.zmg-footer__seo-column { display: flex; flex-direction: column; gap: 4px; }
.zmg-footer__seo-column h4 { margin: 0 0 4px; color: var(--zmg-text); font-size: 14px; font-weight: 500; line-height: 21px; letter-spacing: .14px; }
.zmg-footer__seo-column a { color: var(--zmg-text); font-size: 12px; font-weight: 400; line-height: 18px; letter-spacing: .12px; }
.zmg-footer__legal { display: flex; flex-direction: column; gap: 8px; margin-top: 64px; }
.zmg-footer__legal p { margin: 0; color: #9e9a94; font-size: 12px; font-weight: 400; line-height: 16.8px; letter-spacing: .12px; }
.zmg-footer__legal a { color: var(--zmg-orange); }

/* Desktop fitting between 1024 and Figma width */
@media (max-width: 1439px) and (min-width: 1024px) {
    body.op-new-journal-preview #op-header.op-journal-header { padding-right: 32px !important; padding-left: 32px !important; }
    body.op-new-journal-preview #menu-header-pc { grid-template-columns: minmax(0,1fr) 190px minmax(0,1fr); }
    body.op-new-journal-preview .menu-header-center,
    body.op-new-journal-preview .menu-header-center a,
    body.op-new-journal-preview .menu-header-center svg { width: 190px; max-width: 190px; }
    body.op-new-journal-preview .op-journal-nav { gap: 14px; font-size: 15px; }
    body.op-new-journal-preview .op-journal-header-right { gap: 14px; }
    body.op-new-journal-preview .op-select-psy-btn { padding: 7px 12px !important; font-size: 15px !important; }

    .zmg-container,
    .zmg-footer__inner { width: calc(100% - 64px); max-width: none; }
    .zmg-hero,
    .zmg-main-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .zmg-hero__text,
    .zmg-hero__banner { width: 100%; }
    .zmg-special-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .zmg-card--compact,
    .zmg-card--news-compact { width: 100%; grid-template-columns: 47% minmax(0,1fr); }
    .zmg-card--compact .zmg-card__image,
    .zmg-card--news-compact .zmg-card__image { width: calc(100% - 8px); }
    .zmg-test-grid,
    .zmg-authors-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .zmg-test-card,
    .zmg-author-card { width: 100%; }
    .zmg-card--default,
    .zmg-card--recommend { flex-basis: calc((100% - 72px)/4); width: calc((100% - 72px)/4); }
    .zmg-footer__seo-grid { grid-template-columns: 44% 1fr 1fr; }
}

/* Tablet */
@media (max-width: 1023px) {
    body.op-new-journal-preview { padding-top: 64px !important; }
    .zmg-page { padding-top: 12px; }
    .zmg-container,
    .zmg-footer__inner { width: calc(100% - 48px); max-width: none; }
    .zmg-hero { grid-template-columns: 1fr; gap: 20px; min-height: 0; }
    .zmg-hero__text,
    .zmg-hero__banner { width: 100%; }
    .zmg-hero__banner { max-width: 628px; }
    .zmg-main-grid { grid-template-columns: 1fr; }
    .zmg-main-grid__side { grid-template-rows: none; }
    .zmg-main-grid__side .zmg-card--compact,
    .zmg-card--news-compact { width: 100%; }
    .zmg-mini-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .zmg-mini-grid .zmg-card--text:last-child { grid-column: 1 / -1; }
    .zmg-tabs,
    .zmg-special-tabs { overflow-x: auto; scrollbar-width: none; }
    .zmg-tabs::-webkit-scrollbar,
    .zmg-special-tabs::-webkit-scrollbar { display:none; }
    .zmg-explore__panel .zmg-card,
    .zmg-recommend .zmg-card { flex-basis: calc((100% - 24px)/2); width: calc((100% - 24px)/2); }
    .zmg-explore__controls,
    .zmg-recommend__controls,
    .zmg-special__controls { left: -16px; right: -16px; }
    .zmg-special-grid { grid-template-columns: 1fr; }
    .zmg-card--compact { width: 100%; }
    .zmg-recommend { height: auto; min-height: 730px; padding-bottom: 64px; }
    .zmg-test-grid,
    .zmg-authors-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .zmg-test-card,
    .zmg-author-card { width: 100%; }
    .zmg-subscribe { width: calc(100% - 48px); max-width: none; }
    .zmg-footer__columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .zmg-footer__seo-grid { grid-template-columns: 1fr 1fr; }
    .zmg-footer__about { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 767px) {
    .zmg-container,
    .zmg-footer__inner { width: calc(100% - 32px); }
    .zmg-page { padding-bottom: 40px; }
    .zmg-section { margin-top: 8px; padding-top: 28px; padding-bottom: 28px; }
    .zmg-section__head { margin-bottom: 22px; }
    .zmg-section__head h2 { font-size: 27px; line-height: 30px; }
    .zmg-section__head p { margin-top: 8px; font-size: 16px; line-height: 19px; }
    .zmg-hero { padding-top: 12px; padding-bottom: 20px; }
    .zmg-hero__text h1 { font-size: 32px; line-height: 35px; }
    .zmg-hero__text p { margin-top: 12px; font-size: 16px; line-height: 19px; }
    .zmg-hero__banner { height: 138px; }
    .zmg-voice-card--back { left: 50%; top: 13px; transform: translateX(-50%); }
    .zmg-voice-card--front { left: 50%; top: 22px; transform: translateX(-50%) scale(.88); transform-origin: top center; }

    .zmg-card--lead { height: 398px; }
    .zmg-card--lead .zmg-card__image { height: 196px; }
    .zmg-card--compact,
    .zmg-card--news-compact { display: block; height: auto; }
    .zmg-card--compact .zmg-card__image,
    .zmg-card--news-compact .zmg-card__image { width: calc(100% - 8px); height: 196px; }
    .zmg-card--compact .zmg-card__body,
    .zmg-card--news-compact .zmg-card__body { height: auto; min-height: 190px; }
    .zmg-main-grid--news .zmg-main-grid__side { grid-template-rows: none; }
    .zmg-mini-grid { grid-template-columns: 1fr; }
    .zmg-mini-grid .zmg-card--text:last-child { grid-column: auto; }
    .zmg-card--text { height: auto; min-height: 198px; }
    .zmg-card--text .zmg-card__body { height: auto; min-height: 198px; }

    .zmg-tabs,
    .zmg-special-tabs { margin-bottom: 22px; }
    .zmg-tabs button,
    .zmg-special-tabs span { min-height: 36px; padding: 7px 14px; font-size: 15px; }
    .zmg-explore__panel .zmg-card,
    .zmg-recommend .zmg-card { flex: 0 0 84%; width: 84%; }
    .zmg-explore__controls,
    .zmg-recommend__controls,
    .zmg-special__controls { display: none; }
    .zmg-more { margin-top: 24px; }
    .zmg-more a { min-width: 210px; min-height: 50px; padding: 13px 20px; font-size: 16px; }

    .zmg-recommend { margin-top: 32px; min-height: 680px; border-radius: 20px; }
    .zmg-recommend > .zmg-container { padding-top: 48px; }
    .zmg-recommend .zmg-more { margin-top: 36px; }
    .zmg-news__tip { position: relative; top: auto; left: auto; width: 100%; margin: -8px 0 22px; font-size: 16px; line-height: 19px; }

    .zmg-test-grid,
    .zmg-authors-grid { display: flex; gap: 16px; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
    .zmg-test-grid::-webkit-scrollbar,
    .zmg-authors-grid::-webkit-scrollbar { display:none; }
    .zmg-test-card,
    .zmg-author-card { flex: 0 0 84%; width: 84%; }
    .zmg-app { height: 210px; }
    .zmg-app__content { top: 22px; left: 22px; width: calc(100% - 44px); }
    .zmg-app__content p { font-size: 16px; line-height: 19px; }
    .zmg-app__image { right: -35px; bottom: -70px; width: 250px; opacity: .62; }

    .zmg-subscribe { width: calc(100% - 32px); height: auto; min-height: 390px; margin-top: 40px; padding: 24px 18px; }
    .zmg-subscribe h2 { font-size: 28px; line-height: 31px; }
    .zmg-subscribe p { font-size: 16px; line-height: 19px; }
    .zmg-subscribe form { height: auto; margin-top: 36px; padding: 0; border: 0; background: transparent; flex-direction: column; gap: 10px; }
    .zmg-subscribe input { width: 100%; height: 50px; border: 1px solid rgba(255,255,255,.65); border-radius: 999px; }
    .zmg-subscribe button { width: 100%; height: 50px; }
    .zmg-subscribe__socials { margin-top: 34px; }

    .zmg-footer__main { padding-top: 42px; }
    .zmg-footer__columns { grid-template-columns: 1fr; gap: 34px; }
    .zmg-footer__column--intro { gap: 28px; }
    .zmg-footer__bottomline { align-items: flex-start; flex-direction: column; gap: 28px; }
    .zmg-footer__brandline { width: 100%; gap: 24px; justify-content: space-between; }
    .zmg-footer__seo { padding: 36px 0; }
    .zmg-footer__seo-grid { grid-template-columns: 1fr; gap: 28px; }
    .zmg-footer__about { grid-column: auto; }
    .zmg-footer__legal { margin-top: 38px; }
}

/* Passive edge controls present in the Figma rows (tests/team are not carousels yet). */
.zmg-static-controls {
    position: absolute;
    z-index: 6;
    left: -52px;
    right: -52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}
.zmg-static-controls--tests { top: 346px; }
.zmg-static-controls--team { top: 356px; }
.zmg-static-controls .zmg-side-arrow { pointer-events: none; }
@media (max-width: 1023px) {
    .zmg-static-controls { left: -16px; right: -16px; }
}
@media (max-width: 767px) {
    .zmg-static-controls { display: none; }
}


/* === Zigmund journal fine-tuning v3 === */
body.op-new-journal-preview .op-journal-logo-img {
    display: block;
    width: 217px;
    max-width: 217px;
    height: auto;
}
.zmg-section__head p,
.zmg-hero__text p,
.zmg-app__content p { color: var(--zmg-muted); }

.zmg-card__badge {
    min-height: 30px;
    padding: 6px 12px;
    gap: 6px;
    color: var(--zmg-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
}
.zmg-card__badge::before {
    content: "";
    width: 18px;
    height: 18px;
    margin-right: 0;
    border-radius: 0;
    background: center/contain no-repeat;
}
.zmg-card__badge--fire::before { background-image: url('../../images/zigmund-magazine-new/ui/badge-fire.png'); }
.zmg-card__badge--like::before { background-image: url('../../images/zigmund-magazine-new/ui/badge-like.png'); }
.zmg-card__badge--up::before { background-image: url('../../images/zigmund-magazine-new/ui/badge-up.png'); }
.zmg-card__badge--special {
    background: #d9edff;
    color: #2486ff;
}
.zmg-card__badge--special::before { display:none; }
.zmg-card__badge--special::after,
.zmg-card__topic::after,
.zmg-test-card__tags span::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 3px;
    border-top: 1.6px solid currentColor;
    border-right: 1.6px solid currentColor;
    transform: rotate(45deg);
}
.zmg-card__topic,
.zmg-test-card__tags span {
    min-height: 30px;
    padding: 6px 12px;
    gap: 4px;
    font-size: 14px;
    line-height: 18px;
}
.zmg-card__author,
.zmg-card--compact .zmg-card__author,
.zmg-card--text .zmg-card__author,
.zmg-card--recommend .zmg-card__author,
.zmg-card--news-compact .zmg-card__author {
    font-size: 18px;
    line-height: 19.8px;
}
.zmg-card__meta,
.zmg-card--compact .zmg-card__meta,
.zmg-card--text .zmg-card__meta,
.zmg-card--recommend .zmg-card__meta,
.zmg-card--news-compact .zmg-card__meta {
    gap: 12px;
    padding-top: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
}
.zmg-card__meta-item::before {
    content: "";
    width: 20px;
    height: 20px;
    margin-right: 4px;
    background: center/contain no-repeat;
}
.zmg-card__meta-item--views::before { background-image: url('../../images/zigmund-magazine-new/ui/meta-view.png'); }
.zmg-card__meta-item--time::before { background-image: url('../../images/zigmund-magazine-new/ui/meta-time.png'); }
.zmg-card__meta-item--date::before { background-image: url('../../images/zigmund-magazine-new/ui/meta-date.png'); }
.zmg-card__cta,
.zmg-card--recommend .zmg-card__cta,
.zmg-card--news-compact .zmg-card__cta,
.zmg-test-card__link,
.zmg-author-card__actions a {
    font-size: 18px;
    line-height: 19.8px;
}
.zmg-card--compact .zmg-card__topic,
.zmg-card--recommend .zmg-card__topic,
.zmg-card--news-compact .zmg-card__topic { margin-bottom: 8px; }
.zmg-card--compact .zmg-card__title,
.zmg-card--text .zmg-card__title,
.zmg-card--news-compact .zmg-card__title {
    font-size: 22px;
    line-height: 24.2px;
}
.zmg-card--recommend .zmg-card__title { font-size: 22px; line-height: 24.2px; }
.zmg-news__head-wrap {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.zmg-news__head-wrap .zmg-section__head { flex: 1 1 auto; margin-bottom: 32px; }
.zmg-news__info {
    position: relative;
    flex: 0 0 auto;
    margin-top: 4px;
}
.zmg-news__info-btn {
    display: inline-flex;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.zmg-news__info-btn img { width: 24px; height: 24px; display:block; }
.zmg-news__tooltip {
    position: absolute;
    left: 0;
    top: 34px;
    z-index: 8;
    width: 386px;
    padding: 20px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(36,36,36,.08);
    color: var(--zmg-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 21.6px;
    letter-spacing: .18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.zmg-news__tooltip::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 16px;
    width: 16px;
    height: 16px;
    background: #fff;
    transform: rotate(45deg);
}
.zmg-news__info:hover .zmg-news__tooltip,
.zmg-news__info:focus-within .zmg-news__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.zmg-news__tip { display:none; }

.zmg-test-card__tags { margin: 12px 16px 8px; }
.zmg-test-card h3 { font-size: 22px; line-height: 24.2px; }

.zmg-author-card,
.zmg-author-card--no-photo {
    color: #fff;
}
.zmg-author-card::after,
.zmg-author-card--no-photo::after {
    top: 298px;
    left: 4px;
    width: 294px;
    height: 94px;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(180deg, rgba(97,97,97,0) 0%, #616161 100%);
}
.zmg-author-card__placeholder {
    background: linear-gradient(145deg,#ede6f6 0%,#efe5e1 100%);
}
.zmg-author-card__identity { top: 16px; left: 16px; right: 16px; gap: 4px; }
.zmg-author-card__identity h3,
.zmg-author-card__content h3 {
    color: #fff;
    font-size: 22px;
    line-height: 24.2px;
    letter-spacing: .22px;
}
.zmg-author-card__identity span {
    margin-top: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 21.6px;
}
.zmg-author-card__content {
    left: 16px;
    right: 16px;
    bottom: 72px;
}
.zmg-author-card__content p {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 21.6px;
    -webkit-line-clamp: 2;
}
.zmg-author-card__actions { left:16px; right:16px; bottom:16px; height:36px; justify-content:flex-start; gap:8px; }
.zmg-author-card__actions a { color: var(--zmg-orange); }
.zmg-author-card__book { padding: 8px 16px; }
.zmg-author-card--no-photo .zmg-author-card__identity h3,
.zmg-author-card--no-photo .zmg-author-card__content h3,
.zmg-author-card--no-photo .zmg-author-card__identity span,
.zmg-author-card--no-photo .zmg-author-card__content p { color:#fff; }

.zmg-subscribe__socials { gap: 24px; margin-top: 48px; }
.zmg-social {
    width: 32px;
    height: 32px;
    background: transparent;
    border-radius: 0;
}
.zmg-social img { display:block; width:32px; height:32px; }

.zmg-app__content p { font-weight: 400; }

/* === Zigmund journal fine-tuning v4: Figma parity === */

/* Header: keep both nav groups clear of the centered logo. */
@media (min-width: 1024px) {
    body.op-new-journal-preview #menu-header-pc {
        grid-template-columns: minmax(0, 1fr) 178px minmax(0, 1fr);
        column-gap: 20px;
    }
    body.op-new-journal-preview .menu-header-center,
    body.op-new-journal-preview .menu-header-center a,
    body.op-new-journal-preview .menu-header-center .op-journal-logo-img {
        width: 178px;
        max-width: 178px;
    }
    body.op-new-journal-preview .op-journal-nav {
        gap: 18px;
        font-size: 16px;
        line-height: 20px;
    }
    body.op-new-journal-preview .op-journal-header-right { gap: 18px; }
    body.op-new-journal-preview .menu-header-right-r { gap: 12px; }
    body.op-new-journal-preview .op-select-psy-btn {
        min-height: 38px;
        padding: 8px 15px !important;
        font-size: 16px !important;
        line-height: 20px;
    }
}

/* Every article/test card title is exactly two lines at most, like the Figma cards. */
.zmg-card__title,
.zmg-card--lead .zmg-card__title,
.zmg-card--compact .zmg-card__title,
.zmg-card--special-compact .zmg-card__title,
.zmg-card--text .zmg-card__title,
.zmg-card--default .zmg-card__title,
.zmg-card--recommend .zmg-card__title,
.zmg-card--news-lead .zmg-card__title,
.zmg-card--news-compact .zmg-card__title,
.zmg-test-card h3 {
    display: -webkit-box;
    min-height: 48.4px;
    max-height: 48.4px;
    overflow: hidden;
    font-size: 22px;
    line-height: 24.2px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2 !important;
}

/* Horizontal special-project card uses the exact same geometry as a compact card. */
.zmg-card--special-compact {
    display: grid;
    grid-template-columns: 302px minmax(0,1fr);
    width: 628px;
    height: 198px;
}
.zmg-card--special-compact .zmg-card__image {
    width: 294px;
    height: 190px;
    margin: 4px;
}
.zmg-card--special-compact .zmg-card__body {
    height: 198px;
    padding: 16px 16px 12px 12px;
}
.zmg-card--special-compact .zmg-card__topic { margin-bottom: 8px; }
.zmg-card--special-compact .zmg-card__author { margin-top: 8px; }
.zmg-card--special-compact .zmg-card__author img,
.zmg-card--special-compact .zmg-card__author-placeholder { width: 24px; height: 24px; flex-basis: 24px; }
.zmg-card--special-compact .zmg-card__meta { margin-top:auto; }

/* Figma labels: Popular / Readers' choice / Gaining popularity. */
.zmg-card__badge {
    top: 12px;
    left: 12px;
    min-height: 28px;
    padding: 4px 12px 4px 4px;
    gap: 4px;
    border: .5px solid transparent;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: .14px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.zmg-card__badge::before {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}
.zmg-card__badge--fire {
    border-color: #1fd683;
    background: rgba(8,181,103,.70);
    color: #fff;
}
.zmg-card__badge--like,
.zmg-card__badge--up {
    border-color: #fff;
    background: rgba(255,255,255,.70);
    color: #242424;
}

/* Category tags carry the small chevron from the design. */
.zmg-card__topic::after,
.zmg-card__badge--special::after {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    margin-left: 2px;
    border-top-width: 1.5px;
    border-right-width: 1.5px;
}

/* Side/carousel arrows: no unicode glyphs; draw the same chevron everywhere. */
.zmg-explore__arrow,
.zmg-recommend__arrow,
.zmg-side-arrow {
    position: relative;
    font-size: 0 !important;
    color: transparent !important;
    box-shadow: 0 4px 16px rgba(35,35,35,.06);
}
.zmg-explore__arrow::before,
.zmg-recommend__arrow::before,
.zmg-side-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-top: 1.6px solid #ff5a11;
    border-right: 1.6px solid #ff5a11;
    transform: translate(-62%,-50%) rotate(45deg);
}
.zmg-explore__arrow:first-child::before,
.zmg-recommend__arrow--prev::before,
.zmg-special__controls .zmg-side-arrow:first-child::before,
.zmg-static-controls .zmg-side-arrow:first-child::before {
    transform: translate(-38%,-50%) rotate(-135deg);
}
.zmg-explore__arrow:disabled::before,
.zmg-recommend__arrow:disabled::before,
.zmg-side-arrow.is-disabled::before { border-color: #aca89f; }
.zmg-explore__arrow:disabled,
.zmg-recommend__arrow:disabled,
.zmg-side-arrow.is-disabled { opacity: 1; background: rgba(255,255,255,.55); }

/* Inline news info icon and tooltip exactly beside the final subtitle line. */
.zmg-news__section-head { margin-bottom: 32px; }
.zmg-news__subtitle { display: inline-block; }
.zmg-news__info {
    position: relative;
    display: inline-flex;
    width: 24px;
    height: 24px;
    margin-left: 4px;
    vertical-align: middle;
}
.zmg-news__info-btn {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}
.zmg-news__info-btn img { width:24px; height:24px; }
.zmg-news__tooltip {
    left: 50%;
    top: auto;
    bottom: calc(100% + 14px);
    width: 386px;
    padding: 20px;
    transform: translate(-50%, 8px);
    text-align: left;
}
.zmg-news__tooltip::before {
    top: auto;
    right: auto;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}
.zmg-news__info:hover .zmg-news__tooltip,
.zmg-news__info:focus-within .zmg-news__tooltip {
    transform: translate(-50%, 0);
}

/* CTA chevrons in cards/authors use the same stroke, too. */
.zmg-card__cta > span,
.zmg-test-card__link > span,
.zmg-author-card__actions a > span {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 2px;
    overflow: hidden;
    font-size: 0 !important;
}
.zmg-card__cta > span::before,
.zmg-test-card__link > span::before,
.zmg-author-card__actions a > span::before {
    content:"";
    position:absolute;
    left:4px;
    top:4px;
    width:6px;
    height:6px;
    border-top:1.6px solid currentColor;
    border-right:1.6px solid currentColor;
    transform:rotate(45deg);
}

/* Team cards: 302x460, 294x388 photo, fixed overlay and controls like Figma. */
.zmg-authors-grid { align-items: stretch; }
.zmg-author-card {
    height: 460px;
    background: #fff;
    overflow: hidden;
}
.zmg-author-card > img,
.zmg-author-card__placeholder {
    top: 4px;
    left: 4px;
    width: 294px;
    height: 388px;
    border-radius: 20px;
}
.zmg-author-card > img { object-position: center center; }
.zmg-author-card::after,
.zmg-author-card--no-photo::after {
    top: 298px;
    left: 4px;
    width: 294px;
    height: 94px;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(180deg, rgba(97,97,97,0) 0%, #616161 100%);
}
.zmg-author-card__identity {
    top: 16px;
    left: 16px;
    right: 16px;
    gap: 4px;
}
.zmg-author-card__identity h3,
.zmg-author-card__content h3 {
    font-size: 22px;
    line-height: 24.2px;
}
.zmg-author-card__identity span {
    margin-top: 0;
    padding: 0;
    background: transparent;
    color: #fff;
    font-size: 18px;
    line-height: 21.6px;
}
.zmg-author-card__content {
    top: 336px;
    right: 16px;
    bottom: auto;
    left: 16px;
    height: 44px;
}
.zmg-author-card__content p {
    max-height: 43.2px;
    color: #fff;
    font-size: 18px;
    line-height: 21.6px;
    -webkit-line-clamp: 2;
}
.zmg-author-card__actions {
    top: 408px;
    right: 16px;
    bottom: auto;
    left: 16px;
    height: 36px;
    justify-content: flex-start;
    gap: 8px;
}
.zmg-author-card__actions a { white-space: nowrap; }
.zmg-author-card__book { margin-left: auto; padding: 8px 16px; }
.zmg-author-card__placeholder {
    background: linear-gradient(145deg,#eee8f6 0%,#f1e8e4 100%);
}
.zmg-author-card__placeholder span { display:none; }
.zmg-author-card--no-photo .zmg-author-card__identity h3,
.zmg-author-card--no-photo .zmg-author-card__identity span { color:#242424; }
.zmg-author-card--no-photo .zmg-author-card__content p { color:#fff; }

/* Footer assets supplied with the layout. */
.zmg-footer__socials a { background: transparent !important; }
.zmg-footer__socials img { display:block; width:32px; height:32px; }
.zmg-footer__brand > a {
    width: 197px;
    height: 36px;
    overflow: visible;
}
.zmg-footer__brand > a img {
    display:block;
    width:181px;
    height:auto;
}


/* === v5: exact 1440px desktop header from Figma + reliable team fallback === */
@media (min-width: 1400px) {
    body.op-new-journal-preview #op-header.op-journal-header {
        height: 80px !important;
        min-height: 80px !important;
        padding: 0 !important;
    }
    body.op-new-journal-preview #op-header.op-journal-header > div {
        position: relative;
        width: 100%;
        max-width: 1440px;
        height: 80px;
        margin: 0 auto;
    }
    body.op-new-journal-preview .op-journal-desktop-wrap {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 80px;
    }
    body.op-new-journal-preview #menu-header-pc {
        position: relative;
        display: block;
        width: 1440px;
        max-width: 100%;
        height: 80px;
        margin: 0 auto;
    }
    body.op-new-journal-preview .op-journal-nav {
        position: absolute;
        top: 16px;
        display: inline-flex;
        height: 48px;
        gap: 24px;
        align-items: center;
        justify-content: flex-start;
        font-size: 18px;
        font-weight: 500;
        line-height: normal;
        letter-spacing: 0;
        white-space: nowrap;
    }
    body.op-new-journal-preview .op-journal-nav--left {
        left: 83px;
    }
    body.op-new-journal-preview .menu-header-center {
        position: absolute;
        left: 611px;
        top: 21px;
        width: 217px;
        height: 38px;
        margin: 0;
    }
    body.op-new-journal-preview .menu-header-center a,
    body.op-new-journal-preview .menu-header-center .op-journal-logo-img {
        display: block;
        width: 217px;
        max-width: 217px;
        height: 38px;
    }
    body.op-new-journal-preview .op-journal-header-right {
        position: absolute;
        inset: 0;
        display: block;
        width: 1440px;
        height: 80px;
        pointer-events: none;
    }
    body.op-new-journal-preview .op-journal-header-right .op-journal-nav--right {
        left: 852px;
        pointer-events: auto;
    }
    body.op-new-journal-preview .menu-header-right-r {
        position: absolute;
        left: 1134.5px;
        top: 20px;
        display: flex;
        height: 40px;
        gap: 23.5px;
        align-items: center;
        pointer-events: auto;
    }
    body.op-new-journal-preview .op-select-psy-btn {
        width: 162px !important;
        min-width: 162px;
        height: 38px;
        min-height: 38px;
        padding: 0 !important;
        border-radius: 9999px;
        font-size: 18px !important;
        font-weight: 500 !important;
        line-height: 22px;
        letter-spacing: .18px;
    }
    body.op-new-journal-preview .op-journal-header .search-btn {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }
}

/* Keep the previous fluid desktop behaviour below the exact 1440px breakpoint. */
@media (min-width: 1024px) and (max-width: 1399px) {
    body.op-new-journal-preview #menu-header-pc {
        display: grid;
        grid-template-columns: minmax(0,1fr) 178px minmax(0,1fr);
        column-gap: 18px;
        align-items: center;
    }
    body.op-new-journal-preview .op-journal-nav {
        position: static;
        gap: 14px;
        font-size: 15px;
        line-height: 18px;
    }
    body.op-new-journal-preview .op-journal-header-right {
        position: static;
        display: flex;
        width: auto;
        height: auto;
        gap: 14px;
        pointer-events: auto;
    }
    body.op-new-journal-preview .menu-header-right-r {
        position: static;
        display: flex;
        gap: 10px;
    }
    body.op-new-journal-preview .op-select-psy-btn {
        width: auto !important;
        min-width: 0;
        padding: 7px 12px !important;
        font-size: 15px !important;
        line-height: 18px;
    }
}

/* Never let an empty-photo author card vanish visually. */
.zmg-author-card--no-photo .zmg-author-card__placeholder {
    background:
        radial-gradient(circle at 32% 28%, rgba(151,107,255,.20), transparent 30%),
        radial-gradient(circle at 72% 68%, rgba(247,169,52,.20), transparent 32%),
        linear-gradient(145deg,#eee8f6 0%,#f5ece8 58%,#f7f7f7 100%);
}
.zmg-author-card--no-photo .zmg-author-card__identity h3,
.zmg-author-card--no-photo .zmg-author-card__identity span {
    color: #242424;
    text-shadow: none;
}
.zmg-author-card--no-photo .zmg-author-card__content p {
    color: #fff;
}


/* === v6 clean-shell homepage adjustments === */
/* Legacy header selectors above are inert: redesigned pages no longer render that markup. */
.zmg-team { overflow: visible; }
.zmg-authors-grid {
    display:grid;
    grid-template-columns:repeat(4,302px);
    gap:24px;
    width:100%;
    min-height:460px;
}
.zmg-author-card {
    position:relative;
    width:302px;
    height:460px;
    overflow:hidden;
    border-radius:24px;
    background:#fff;
}
.zmg-author-card>img,
.zmg-author-card__placeholder {
    position:absolute;
    left:4px;
    top:4px;
    width:294px;
    height:388px;
    border-radius:20px;
    object-fit:cover;
}
.zmg-author-card::after {
    content:"";
    position:absolute;
    z-index:1;
    left:4px;
    top:298px;
    width:294px;
    height:94px;
    border-radius:0 0 20px 20px;
    background:linear-gradient(180deg,rgba(97,97,97,0) 0%,#616161 100%);
    pointer-events:none;
}
.zmg-author-card__identity {
    position:absolute;
    z-index:2;
    left:16px;
    right:16px;
    top:16px;
    display:flex;
    flex-direction:column;
    gap:4px;
}
.zmg-author-card__identity h3 {
    margin:0;
    color:#fff!important;
    font-size:22px!important;
    font-weight:700;
    line-height:24.2px!important;
    letter-spacing:.22px;
}
.zmg-author-card__identity span {
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    color:#fff!important;
    font-size:18px!important;
    font-weight:500;
    line-height:21.6px!important;
}
.zmg-author-card__content {
    position:absolute;
    z-index:2;
    left:16px;
    right:16px;
    top:336px;
    height:44px;
}
.zmg-author-card__content p {
    display:-webkit-box;
    overflow:hidden;
    margin:0;
    color:#fff!important;
    font-size:18px!important;
    font-weight:500;
    line-height:21.6px!important;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}
.zmg-author-card__actions {
    position:absolute;
    z-index:3;
    left:16px;
    right:16px;
    top:408px;
    display:flex;
    height:36px;
    align-items:center;
    gap:8px;
}
.zmg-author-card__actions>a {
    display:inline-flex;
    align-items:center;
    color:#ff5a11;
    font-size:18px!important;
    font-weight:500;
    line-height:19.8px!important;
    white-space:nowrap;
}
.zmg-author-card__book {
    margin-left:auto;
    padding:8px 16px!important;
    border-radius:9999px;
    background:linear-gradient(90deg,#f7a934 0%,#f37645 50%,#f57442 100%);
    color:#fff!important;
}
.zmg-author-card--no-photo .zmg-author-card__placeholder { background:#ece7ef; }
.zmg-author-card--no-photo .zmg-author-card__identity h3,
.zmg-author-card--no-photo .zmg-author-card__identity span { color:#242424!important; }
@media(max-width:1439px) and (min-width:1024px){
    .zmg-authors-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
    .zmg-author-card{width:100%;}
    .zmg-author-card>img,.zmg-author-card__placeholder,.zmg-author-card::after{width:calc(100% - 8px);}
}

/* === v7 homepage carousels + mobile Figma pass === */
.zmg-container {
    width: 100%;
    max-width: 1440px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 80px;
    padding-left: 80px;
    box-sizing: border-box;
}
.zmg-card__title a,
.zmg-test-card h3 a { color: inherit; }
.zmg-mobile-section-nav { display: none; }

/* Real test/team sliders: 4 visible cards on the 1440px desktop frame. */
.zmg-tests,
.zmg-team { overflow: visible; }
.zmg-test-grid,
.zmg-authors-grid {
    display: flex;
    grid-template-columns: none;
    gap: 24px;
    width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}
.zmg-test-grid::-webkit-scrollbar,
.zmg-authors-grid::-webkit-scrollbar { display: none; }
.zmg-test-card,
.zmg-author-card {
    flex: 0 0 302px;
    width: 302px;
    scroll-snap-align: start;
}
.zmg-static-controls {
    pointer-events: none;
}
.zmg-static-controls .zmg-side-arrow {
    border: 0;
    pointer-events: auto;
    cursor: pointer;
}
.zmg-static-controls .zmg-side-arrow:disabled {
    opacity: .42;
    cursor: default;
}
.zmg-carousel--static .zmg-static-controls .zmg-side-arrow { opacity: .42; }

/* Tooltip is hoverable on desktop and tappable on touch devices. */
.zmg-news__info.is-open .zmg-news__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Make all obvious interactive homepage UI actually look/behave interactive. */
.zmg-tabs button,
.zmg-explore__arrow,
.zmg-recommend__arrow,
.zmg-side-arrow,
.zmg-news__info-btn,
.zmg-subscribe button,
.zmg-card__image,
.zmg-card__title a,
.zmg-card__topic,
.zmg-test-card__image,
.zmg-test-card__link,
.zmg-more a,
.zmg-author-card__actions a,
.zmg-social { cursor: pointer; }

@media (max-width: 1439px) and (min-width: 1024px) {
    .zmg-container {
        max-width: none;
        padding-right: 32px;
        padding-left: 32px;
    }
    .zmg-test-card,
    .zmg-author-card {
        flex-basis: calc((100% - 72px) / 4);
        width: calc((100% - 72px) / 4);
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .zmg-container {
        max-width: none;
        padding-right: 24px;
        padding-left: 24px;
    }
    .zmg-test-card,
    .zmg-author-card {
        flex: 0 0 calc((100% - 24px) / 2);
        width: calc((100% - 24px) / 2);
    }
}

@media (max-width: 767px) {
    body.op-new-journal-preview,
    body.zmg-body { background: #f7f7f7; }
    .zmg-page {
        padding-top: 0;
        padding-bottom: 32px;
    }
    .zmg-container {
        width: 100%;
        max-width: none;
        padding-right: 16px;
        padding-left: 16px;
    }

    /* Mobile intro from the supplied Figma: text only, no green desktop banner. */
    .zmg-hero {
        display: block;
        min-height: 0;
        padding-top: 22px;
        padding-bottom: 18px;
    }
    .zmg-hero__text { width: 100%; }
    .zmg-hero__text h1 {
        width: 100%;
        margin: 0;
        font-size: 28px;
        line-height: 31px;
        letter-spacing: .28px;
    }
    .zmg-hero__text p {
        margin-top: 10px;
        font-size: 15px;
        line-height: 18px;
        letter-spacing: .15px;
    }
    .zmg-hero__banner { display: none; }

    .zmg-mobile-section-nav {
        display: flex;
        width: 100%;
        margin: 0 0 8px;
        padding: 0 16px;
        gap: 22px;
        overflow-x: auto;
        border-bottom: 1px solid #e3e3e3;
        background: #fff;
        scrollbar-width: none;
        white-space: nowrap;
    }
    .zmg-mobile-section-nav::-webkit-scrollbar { display: none; }
    .zmg-mobile-section-nav a {
        position: relative;
        display: inline-flex;
        min-height: 42px;
        align-items: center;
        flex: 0 0 auto;
        color: #5f5c57;
        font-size: 14px;
        font-weight: 500;
        line-height: 17px;
    }
    .zmg-mobile-section-nav a.is-active { color: #242424; }
    .zmg-mobile-section-nav a.is-active::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3px;
        border-radius: 3px 3px 0 0;
        background: #ff7a45;
    }

    .zmg-section {
        margin-top: 0;
        padding-top: 24px;
        padding-bottom: 24px;
    }
    .zmg-section__head { margin-bottom: 18px; }
    .zmg-section__head > div { width: 100%; }
    .zmg-section__head h2 {
        font-size: 24px;
        line-height: 26.4px;
        letter-spacing: .24px;
    }
    .zmg-section__head p {
        margin-top: 8px;
        font-size: 14px;
        line-height: 17px;
        letter-spacing: .14px;
    }

    /* Main month: one full-width card per row, exactly like the mobile Figma. */
    .zmg-main-grid,
    .zmg-main-grid__side,
    .zmg-mini-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 16px;
    }
    .zmg-mini-grid { margin-top: 16px; }
    .zmg-card--lead,
    .zmg-card--compact,
    .zmg-card--news-lead,
    .zmg-card--news-compact,
    .zmg-card--text {
        width: 100%;
        height: auto;
        min-height: 0;
    }
    .zmg-card--lead .zmg-card__image,
    .zmg-card--compact .zmg-card__image,
    .zmg-card--news-lead .zmg-card__image,
    .zmg-card--news-compact .zmg-card__image {
        width: calc(100% - 8px);
        height: 190px;
        margin: 4px;
    }
    .zmg-card--lead .zmg-card__body,
    .zmg-card--compact .zmg-card__body,
    .zmg-card--news-lead .zmg-card__body,
    .zmg-card--news-compact .zmg-card__body {
        width: 100%;
        height: auto;
        min-height: 142px;
        padding: 12px 14px 14px;
    }
    .zmg-card--text .zmg-card__body {
        height: auto;
        min-height: 154px;
        padding: 14px;
    }
    .zmg-card__topic,
    .zmg-test-card__tags span {
        min-height: 24px;
        padding: 3px 9px;
        font-size: 12px;
        line-height: 16px;
    }
    .zmg-card__title,
    .zmg-card--lead .zmg-card__title,
    .zmg-card--compact .zmg-card__title,
    .zmg-card--special-compact .zmg-card__title,
    .zmg-card--text .zmg-card__title,
    .zmg-card--default .zmg-card__title,
    .zmg-card--recommend .zmg-card__title,
    .zmg-card--news-lead .zmg-card__title,
    .zmg-card--news-compact .zmg-card__title,
    .zmg-test-card h3 {
        min-height: 40px;
        max-height: 40px;
        font-size: 18px;
        line-height: 20px;
        letter-spacing: .18px;
    }
    .zmg-card__author,
    .zmg-card--compact .zmg-card__author,
    .zmg-card--text .zmg-card__author,
    .zmg-card--recommend .zmg-card__author,
    .zmg-card--news-compact .zmg-card__author {
        margin-top: 8px;
        font-size: 14px;
        line-height: 17px;
    }
    .zmg-card__author img,
    .zmg-card__author-placeholder,
    .zmg-card--compact .zmg-card__author img,
    .zmg-card--compact .zmg-card__author-placeholder,
    .zmg-card--text .zmg-card__author img,
    .zmg-card--text .zmg-card__author-placeholder,
    .zmg-card--recommend .zmg-card__author img,
    .zmg-card--recommend .zmg-card__author-placeholder,
    .zmg-card--news-compact .zmg-card__author img,
    .zmg-card--news-compact .zmg-card__author-placeholder {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }
    .zmg-card__meta,
    .zmg-card--compact .zmg-card__meta,
    .zmg-card--text .zmg-card__meta,
    .zmg-card--recommend .zmg-card__meta,
    .zmg-card--news-compact .zmg-card__meta {
        gap: 8px;
        padding-top: 8px;
        font-size: 11px;
        line-height: 14px;
    }
    .zmg-card__meta-item::before { width: 16px; height: 16px; }

    /* Horizontal Figma rows: rubric / special projects / recommendations / tests / team. */
    .zmg-explore__panel .zmg-cards-row,
    .zmg-recommend .zmg-cards-row,
    .zmg-special-grid,
    .zmg-test-grid,
    .zmg-authors-grid {
        display: flex;
        width: auto;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        margin-right: -16px;
        padding-right: 16px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .zmg-explore__panel .zmg-cards-row::-webkit-scrollbar,
    .zmg-recommend .zmg-cards-row::-webkit-scrollbar,
    .zmg-special-grid::-webkit-scrollbar,
    .zmg-test-grid::-webkit-scrollbar,
    .zmg-authors-grid::-webkit-scrollbar { display: none; }
    .zmg-explore__panel .zmg-card,
    .zmg-recommend .zmg-card,
    .zmg-test-card,
    .zmg-author-card {
        flex: 0 0 302px;
        width: 302px;
        max-width: calc(100vw - 48px);
        scroll-snap-align: start;
    }
    .zmg-card--special-compact {
        display: block;
        flex: 0 0 302px;
        width: 302px;
        max-width: calc(100vw - 48px);
        height: 398px;
        scroll-snap-align: start;
    }
    .zmg-card--special-compact .zmg-card__image {
        width: calc(100% - 8px);
        height: 196px;
        margin: 4px;
    }
    .zmg-card--special-compact .zmg-card__body {
        width: 100%;
        height: 194px;
        padding: 12px 16px 14px;
    }
    .zmg-tabs,
    .zmg-special-tabs {
        width: calc(100% + 16px);
        margin-right: -16px;
        margin-bottom: 18px;
        padding-right: 16px;
        gap: 8px;
        overflow-x: auto;
    }
    .zmg-tabs button,
    .zmg-special-tabs span {
        min-height: 34px;
        padding: 7px 13px;
        font-size: 14px;
        line-height: 18px;
    }
    .zmg-explore__controls,
    .zmg-recommend__controls,
    .zmg-special__controls,
    .zmg-static-controls { display: none; }

    .zmg-more { margin-top: 20px; }
    .zmg-more a {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        padding: 13px 18px;
        font-size: 16px;
        line-height: 20px;
    }

    .zmg-recommend {
        width: 100%;
        min-height: 0;
        margin-top: 24px;
        padding-bottom: 28px;
        border-radius: 0;
    }
    .zmg-recommend > .zmg-container {
        height: auto;
        padding-top: 32px;
    }
    .zmg-recommend .zmg-section__head { margin-bottom: 18px; }
    .zmg-recommend .zmg-more { margin-top: 24px; }

    .zmg-news__section-head { margin-bottom: 18px; }
    .zmg-news__subtitle br { display: none; }
    .zmg-news__info { vertical-align: middle; }
    .zmg-news__info-btn,
    .zmg-news__info-btn img { width: 20px; height: 20px; }
    .zmg-news__tooltip {
        left: auto;
        right: -6px;
        top: 30px;
        width: min(310px, calc(100vw - 48px));
        padding: 14px;
        border-radius: 14px;
        font-size: 14px;
        line-height: 17px;
    }
    .zmg-news__tooltip::before { left: auto; right: 9px; }

    .zmg-test-card { height: 356px; }
    .zmg-test-card__image { height: 196px; }
    .zmg-test-card__tags { margin: 12px 14px 6px; }
    .zmg-test-card h3 { margin: 0 14px; }
    .zmg-test-card__link {
        margin: auto 14px 14px;
        font-size: 16px;
        line-height: 19px;
    }

    .zmg-team .zmg-section__head { margin-bottom: 18px; }
    .zmg-author-card {
        flex-basis: 302px;
        width: 302px;
        max-width: calc(100vw - 48px);
        height: 460px;
    }

    .zmg-app {
        height: 218px;
        margin-top: 0;
        border-radius: 20px;
    }
    .zmg-app__content {
        top: 20px;
        left: 20px;
        width: calc(100% - 40px);
    }
    .zmg-app__content h2 { font-size: 20px; line-height: 22px; }
    .zmg-app__content p {
        margin-top: 8px;
        font-size: 14px;
        line-height: 17px;
    }
    .zmg-app__image {
        right: -26px;
        bottom: -55px;
        width: 235px;
        opacity: 1;
    }

    .zmg-subscribe {
        width: calc(100% - 32px);
        max-width: none;
        min-height: 420px;
        margin-top: 32px;
        padding: 22px 16px;
        border-radius: 20px;
    }
    .zmg-subscribe h2 {
        font-size: 24px;
        line-height: 27px;
        letter-spacing: .24px;
    }
    .zmg-subscribe p {
        margin-top: 12px;
        font-size: 14px;
        line-height: 17px;
    }
    .zmg-subscribe form { margin-top: 28px; gap: 10px; }
    .zmg-subscribe input,
    .zmg-subscribe button { height: 48px; font-size: 16px; }
    .zmg-subscribe__socials { gap: 20px; margin-top: 28px; }

    .zmg-footer { border-radius: 20px 20px 0 0; }
    .zmg-footer__inner { width: calc(100% - 32px); }
    .zmg-footer__main { padding-top: 32px; padding-bottom: 28px; }
    .zmg-footer__columns { gap: 28px; }
    .zmg-footer__cta { width: 100%; }
    .zmg-footer__group h3,
    .zmg-footer__download h3 { font-size: 18px; line-height: 20px; }
    .zmg-footer__group > a,
    .zmg-footer__accent-link,
    .zmg-footer__help-item p { font-size: 14px; line-height: 17px; }
    .zmg-footer__phone { font-size: 16px; line-height: 19px; }
    .zmg-footer__bottomline { margin-top: 28px; }
    .zmg-footer__brandline { align-items: flex-end; }
    .zmg-footer__seo { padding: 30px 0; }
    .zmg-footer__seo-grid { gap: 24px; }
    .zmg-footer__about { font-size: 14px; line-height: 19px; }
    .zmg-footer__legal { margin-top: 30px; }
}
.zmg-side-arrow:disabled::before { border-color: #aca89f; }
#main-month,
#rubrics,
#special-projects,
#news,
#tests,
#team,
#subscribe { scroll-margin-top: 96px; }
@media (max-width: 1023px) {
    #main-month,
    #rubrics,
    #special-projects,
    #news,
    #tests,
    #team,
    #subscribe { scroll-margin-top: 76px; }
}


/* === Homepage mobile final pass v8: tabs, tooltip, journal card, footer hover === */
.zmg-tabs__more { display: none; }
.zmg-news__tooltip-mobile { display: none; }

/* Footer links are neutral at rest; orange is the interaction state. */
.zmg-footer__accent-link,
.zmg-footer .is-accent,
.zmg-footer__phone,
.zmg-footer__legal a {
    color: var(--zmg-text) !important;
}
.zmg-footer a:not(.zmg-footer__cta) {
    transition: color .18s ease, opacity .18s ease;
}
.zmg-footer a:not(.zmg-footer__cta):hover,
.zmg-footer a:not(.zmg-footer__cta):focus-visible {
    color: var(--zmg-orange) !important;
}
.zmg-footer a,
.zmg-footer__cta,
.zmg-tabs__more { cursor: pointer; }

@media (max-width: 767px) {
    /* Rubrics: tiles that wrap down instead of a horizontal carousel. */
    .zmg-tabs {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        margin-right: 0;
        margin-bottom: 18px;
        padding-right: 0;
        gap: 8px;
        overflow: visible;
    }
    .zmg-tabs button {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 10px 18px;
        font-size: 16px;
        line-height: 20px;
    }
    .zmg-tabs .zmg-tabs__item--extra { display: none; }
    .zmg-tabs.is-expanded .zmg-tabs__item--extra { display: inline-flex; }
    .zmg-tabs__more {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid transparent;
        border-radius: 9999px;
        background: #fff;
        color: var(--zmg-text);
        font-weight: 500;
        white-space: nowrap;
    }

    /* Mobile info panel participates in normal flow, so it never covers a news card. */
    .zmg-news__tooltip { display: none !important; }
    .zmg-news__tooltip-mobile {
        display: none;
        width: 100%;
        margin-top: 12px;
        padding: 14px 16px;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 6px 20px rgba(36,36,36,.08);
        color: var(--zmg-text);
        font-size: 14px;
        font-weight: 500;
        line-height: 18px;
    }
    .zmg-news__section-head.is-tooltip-open .zmg-news__tooltip-mobile { display: block; }
    .zmg-news__section-head.is-tooltip-open { margin-bottom: 18px; }

    /* Journal teaser follows the near-square Figma mobile card. */
    .zmg-app {
        height: auto;
        min-height: 0;
        aspect-ratio: .965 / 1;
        margin-top: 0;
        border-radius: 20px;
    }
    .zmg-app__content {
        top: 24px;
        left: 24px;
        width: calc(100% - 48px);
    }
    .zmg-app__content h2 {
        font-size: 26px;
        line-height: 29px;
        letter-spacing: .26px;
    }
    .zmg-app__content p {
        margin-top: 18px;
        font-size: 20px;
        line-height: 29px;
        letter-spacing: .2px;
    }
    .zmg-app__image {
        right: -8%;
        bottom: -8%;
        width: 88%;
        max-width: none;
        opacity: 1;
    }
}

/* === Client review pass 2026-09-30: homepage only === */

/* Updated hero promo: the client asked to replace the green voice banner with the burnout test. */
.zmg-hero__banner--test {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: stretch;
    overflow: hidden;
    background: linear-gradient(152deg, #976bff 0%, #c1b1ff 100%);
    color: #fff;
}
.zmg-hero__banner--test > img {
    align-self: center;
    justify-self: end;
    width: 190px;
    height: 250px;
    max-width: none;
    margin-right: 12px;
    object-fit: cover;
    object-position: top center;
    transform: translateY(6px);
    border-radius: 20px 20px 0 0;
}
.zmg-hero-test__copy {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    padding: 20px 0 18px 24px;
    flex-direction: column;
    align-items: flex-start;
}
.zmg-hero-test__tags { display:flex; gap:8px; margin-bottom:12px; }
.zmg-hero-test__tags span {
    display:inline-flex;
    min-height:26px;
    align-items:center;
    padding:4px 10px;
    border-radius:999px;
    background:rgba(255,255,255,.22);
    color:#fff;
    font-size:13px;
    font-weight:700;
    line-height:18px;
}
.zmg-hero-test__copy > strong {
    display:-webkit-box;
    max-width:320px;
    overflow:hidden;
    color:#fff;
    font-size:22px;
    font-weight:700;
    line-height:24.2px;
    letter-spacing:.22px;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}
.zmg-hero-test__cta {
    display:inline-flex;
    min-height:32px;
    margin-top:auto;
    align-items:center;
    padding:6px 14px;
    border-radius:999px;
    background:#fff;
    color:var(--zmg-orange);
    font-size:14px;
    font-weight:500;
    line-height:18px;
}

/* Category chips use the color system shown throughout the Figma components. */
.zmg-card__topic,
.zmg-test-card__tag {
    border:0;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
}
.zmg-card__topic--violet,
.zmg-test-card__tag--violet { background:#ece8ff !important; color:#976bff !important; }
.zmg-card__topic--pink,
.zmg-test-card__tag--pink { background:#fee5f1 !important; color:#ff4794 !important; }
.zmg-card__topic--green,
.zmg-test-card__tag--green { background:#d8f8e6 !important; color:#08b567 !important; }
.zmg-card__topic--orange,
.zmg-test-card__tag--orange { background:#fff1c5 !important; color:#ff9b10 !important; }
.zmg-card__topic--blue,
.zmg-test-card__tag--blue { background:#d9edff !important; color:#2486ff !important; }

/* Exact small Figma chevron instead of the old CSS angle. */
.zmg-card__topic::after,
.zmg-card__badge--special::after,
.zmg-test-card__tags span::after {
    width:12px;
    height:18px;
    flex:0 0 12px;
    margin-left:0;
    border:0 !important;
    background:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 18'%3E%3Cpath d='M4.25 5.25L8 9l-3.75 3.75' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px 18px no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 18'%3E%3Cpath d='M4.25 5.25L8 9l-3.75 3.75' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px 18px no-repeat;
    transform:none !important;
}

/* Figma side arrows: 40px circle + 32px icon canvas. */
.zmg-explore__arrow,
.zmg-recommend__arrow,
.zmg-side-arrow {
    width:40px;
    height:40px;
    flex-basis:40px;
    border-radius:30px;
    background:#fff;
    box-shadow:0 4px 20px rgba(0,0,0,.10);
}
.zmg-explore__arrow::before,
.zmg-recommend__arrow::before,
.zmg-side-arrow::before {
    width:32px;
    height:32px;
    border:0 !important;
    background:#ff5a11;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M12.5 9.5L19 16l-6.5 6.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/32px 32px no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M12.5 9.5L19 16l-6.5 6.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/32px 32px no-repeat;
    transform:translate(-50%,-50%) !important;
}
.zmg-explore__arrow:first-child::before,
.zmg-recommend__arrow--prev::before,
.zmg-special__controls .zmg-side-arrow:first-child::before,
.zmg-static-controls .zmg-side-arrow:first-child::before {
    transform:translate(-50%,-50%) rotate(180deg) !important;
}
.zmg-explore__arrow:disabled::before,
.zmg-recommend__arrow:disabled::before,
.zmg-side-arrow:disabled::before,
.zmg-side-arrow.is-disabled::before { background:#aca89f; }

/* Rubric tags: first row stays compact; "ещё N" really reveals the remaining tags. */
.zmg-tabs {
    flex-wrap:wrap;
    overflow:visible;
}
.zmg-tabs__item--extra-desktop { display:none !important; }
.zmg-tabs.is-expanded .zmg-tabs__item--extra-desktop { display:inline-flex !important; }
.zmg-tabs__more {
    display:none;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:9px 18px;
    border:1px solid transparent;
    border-radius:9999px;
    background:#fff;
    color:var(--zmg-text);
    font-size:18px;
    font-weight:500;
    line-height:20px;
    white-space:nowrap;
}
.zmg-tabs__more.is-desktop-needed { display:inline-flex; }

/* Special project tabs are real links now. */
.zmg-special-tabs a {
    display:inline-flex;
    min-height:40px;
    align-items:center;
    justify-content:center;
    padding:9px 18px;
    border:1px solid transparent;
    border-radius:9999px;
    background:#fff;
    color:var(--zmg-text);
    font-size:18px;
    font-weight:500;
    line-height:20px;
    white-space:nowrap;
}
.zmg-special-tabs a.is-active {
    border-color:#f37645;
    color:var(--zmg-orange);
}

/* More breathing room below card rows, as marked in the review. */
.zmg-explore .zmg-more,
.zmg-special .zmg-more,
.zmg-news .zmg-more,
.zmg-tests .zmg-more { margin-top:48px; }
.zmg-recommend .zmg-more { margin-top:64px; }

/* News are no longer substituted with unrelated posts. */
.zmg-news-empty {
    display:flex;
    width:100%;
    min-height:170px;
    align-items:center;
    justify-content:center;
    padding:32px;
    border-radius:24px;
    background:#fff;
    color:var(--zmg-muted);
    font-size:22px;
    font-weight:500;
    line-height:28px;
    letter-spacing:.22px;
    text-align:center;
}

/* Journal teaser: keep the illustration inside the grey card. */
.zmg-app__image {
    right:40px;
    bottom:-8px;
    width:340px;
}

/* Subscription: exact Figma construction — separate 515px input and button, not one combined pill. */
.zmg-subscribe form {
    width:680px;
    height:56px;
    padding:0;
    gap:12px;
    border:0;
    border-radius:0;
    background:transparent;
}
.zmg-subscribe input {
    width:515px;
    height:56px;
    flex:0 0 515px;
    padding:0 24px;
    border:1px solid rgba(255,255,255,.70);
    border-radius:28px;
}
.zmg-subscribe button {
    min-width:153px;
    height:56px;
    padding:0 32px;
    font-size:18px;
    line-height:19.8px;
}
.zmg-subscribe__socials { margin-top:84px; }

@media (max-width: 1023px) {
    .zmg-hero__banner--test { max-width:628px; }
    .zmg-subscribe form { width:100%; }
    .zmg-subscribe input { min-width:0; flex:1 1 auto; width:auto; }
}

@media (max-width: 767px) {
    .zmg-hero__banner--test {
        display:none;
    }
    .zmg-tabs__item--extra-desktop { display:inline-flex !important; }
    .zmg-tabs .zmg-tabs__item--extra-mobile { display:none !important; }
    .zmg-tabs.is-expanded .zmg-tabs__item--extra-mobile { display:inline-flex !important; }
    .zmg-tabs__more,
    .zmg-tabs__more.is-desktop-needed { display:none; }
    .zmg-tabs__more.is-mobile-needed { display:inline-flex; }
    .zmg-explore .zmg-more,
    .zmg-special .zmg-more,
    .zmg-news .zmg-more,
    .zmg-tests .zmg-more,
    .zmg-recommend .zmg-more { margin-top:24px; }
    .zmg-news-empty {
        min-height:120px;
        padding:24px 18px;
        border-radius:20px;
        font-size:16px;
        line-height:21px;
    }
    .zmg-app__image {
        right:-8%;
        bottom:-8%;
        width:88%;
    }
    .zmg-subscribe form {
        height:auto;
        margin-top:28px;
        flex-direction:column;
        gap:10px;
    }
    .zmg-subscribe input,
    .zmg-subscribe button {
        width:100%;
        height:48px;
        flex:0 0 auto;
    }
    .zmg-subscribe__socials { margin-top:28px; }
}

/* === Client review 2026-09-30: homepage micro-adjustments === */
/* Figma 12x12 tag arrow. Its mask inherits the chip's currentColor, so each tone stays correct. */
.zmg-card__topic::after,
.zmg-card__badge--special::after,
.zmg-test-card__tags span::after,
.zmg-test-card__tag::after {
    content: "";
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    margin-left: 0;
    border: 0 !important;
    background: currentColor;
    -webkit-mask: url('../../images/zigmund-magazine-new/ui/tag-arrow.svg') center / 12px 12px no-repeat;
    mask: url('../../images/zigmund-magazine-new/ui/tag-arrow.svg') center / 12px 12px no-repeat;
    transform: none !important;
}

/* Wider rubric CTA from the review; keep the caption visually centered. */
.zmg-explore .zmg-more a[data-zmg-explore-more] {
    width: min(360px, 100%);
    min-width: min(360px, 100%);
    text-align: center;
}

/* Author line consistently sits 12px below the title in every card variant. */
.zmg-card__author,
.zmg-card--compact .zmg-card__author,
.zmg-card--text .zmg-card__author,
.zmg-card--default .zmg-card__author,
.zmg-card--recommend .zmg-card__author,
.zmg-card--news-lead .zmg-card__author,
.zmg-card--news-compact .zmg-card__author,
.zmg-card--special-compact .zmg-card__author {
    margin-top: 12px !important;
}

/* Slider controls are 16px from the full 1440px frame edges. */
.zmg-explore__controls,
.zmg-recommend__controls,
.zmg-special__controls {
    left: 16px;
    right: 16px;
}

/* Keep the journal illustration seated on the bottom edge of its card. */
.zmg-app__image {
    bottom: 0 !important;
}

/* Subscription block is centered and never wider than 850px. */
.zmg-subscribe.zmg-container {
    width: 100%;
    max-width: 850px;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 767px) {
    .zmg-explore .zmg-more a[data-zmg-explore-more] {
        width: 100%;
        min-width: 0;
    }
    .zmg-subscribe.zmg-container {
        width: calc(100% - 32px);
        max-width: 850px;
    }
}

/* === Final pre-production hero promo: “Нужен ли вам психолог?” === */
.zmg-hero__banner--psychologist-test {
    position: relative;
    display: block;
    width: 628px;
    height: 164px;
    overflow: hidden;
    border-radius: 24px;
    background: #08b567;
    color: #fff;
}
.zmg-hero__banner--psychologist-test > .zmg-hero-psych-test__bg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: fill;
    transform: none;
    border-radius: 0;
}
.zmg-hero-psych-test__copy {
    position: absolute;
    z-index: 2;
    top: 34px;
    left: 378px;
    display: flex;
    width: 218px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.zmg-hero-psych-test__copy > strong {
    margin: 0;
    color: #fff;
    font-family: 'PT Root UI', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: .24px;
}
.zmg-hero-psych-test__cta {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 999px;
    background: linear-gradient(90deg,#f7a934 0%,#f37645 50%,#f57442 100%);
    color: #fff;
    font-family: 'PT Root UI', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: .18px;
    white-space: nowrap;
}
.zmg-hero__banner--psychologist-test:hover .zmg-hero-psych-test__cta,
.zmg-hero__banner--psychologist-test:focus-visible .zmg-hero-psych-test__cta {
    filter: brightness(.97);
}

@media (max-width: 1023px) and (min-width: 768px) {
    .zmg-hero__banner--psychologist-test {
        width: 100%;
        max-width: 628px;
        aspect-ratio: 628 / 164;
        height: auto;
    }
    .zmg-hero-psych-test__copy {
        top: 20.7%;
        left: 60.2%;
        width: 34.7%;
        gap: 10%;
    }
    .zmg-hero-psych-test__copy > strong {
        font-size: clamp(16px, 2.35vw, 24px);
        line-height: 1.17;
    }
    .zmg-hero-psych-test__cta {
        min-height: 34px;
        padding: 6px 16px;
        font-size: clamp(14px, 1.75vw, 18px);
        line-height: 1.2;
    }
}

/* === Personnel/special-project behavior pass 2026-10-05 === */
.zmg-special-tabs button {
    display:inline-flex;
    min-height:40px;
    align-items:center;
    justify-content:center;
    padding:9px 18px;
    border:1px solid transparent;
    border-radius:9999px;
    background:#fff;
    color:var(--zmg-text);
    font:inherit;
    font-size:18px;
    font-weight:500;
    line-height:20px;
    white-space:nowrap;
    cursor:pointer;
}
.zmg-special-tabs button.is-active { border-color:#f37645; color:var(--zmg-orange); }
.zmg-special-panels { width:100%; overflow:hidden; }
.zmg-special-panel { display:none; width:100%; }
.zmg-special-panel.is-active { display:block; }
.zmg-special-track {
    display:flex;
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-behavior:smooth;
    scrollbar-width:none;
    scroll-snap-type:x mandatory;
}
.zmg-special-track::-webkit-scrollbar { display:none; }
.zmg-special-page {
    display:grid;
    grid-template-columns:repeat(2,628px);
    flex:0 0 100%;
    width:100%;
    gap:24px;
    scroll-snap-align:start;
}
.zmg-special__controls { pointer-events:none; }
.zmg-special__controls .zmg-side-arrow { pointer-events:auto; cursor:pointer; }
.zmg-special__controls .zmg-side-arrow:disabled { opacity:.45; cursor:default; }

@media (max-width: 767px) {
    .zmg-special-tabs button { min-height:36px; padding:7px 14px; font-size:15px; }
    .zmg-special-page { grid-template-columns:1fr; gap:12px; }
}


/* === Client fixes 2026-10-08 === */
.zmg-subscribe form { position: relative; }
.zmg-subscribe__message {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    margin: 0;
    color: rgba(255,255,255,.92);
    font-size: 14px;
    line-height: 18px;
    text-align: center;
}
.zmg-subscribe__message.is-error { color: #fff0ed; }
.zmg-subscribe__message.is-success { color: #fff; }
.zmg-subscribe button:disabled { opacity: .7; cursor: wait; }

@media (max-width: 767px) {
    .zmg-hero__banner--psychologist-test {
        display: block;
        width: 100%;
        max-width: none;
        height: auto;
        aspect-ratio: 628 / 164;
        margin-top: 0;
        border-radius: 18px;
    }
    .zmg-hero__banner--psychologist-test > .zmg-hero-psych-test__bg {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }
    .zmg-hero-psych-test__copy {
        top: 20.7%;
        left: 60.2%;
        width: 34.7%;
        gap: 7px;
    }
    .zmg-hero-psych-test__copy > strong {
        font-size: clamp(12px, 3.9vw, 16px);
        line-height: 1.15;
        letter-spacing: 0;
    }
    .zmg-hero-psych-test__cta {
        min-height: 28px;
        padding: 5px 10px;
        font-size: clamp(11px, 3.3vw, 14px);
        line-height: 1.15;
    }
    .zmg-subscribe__message {
        position: static;
        min-height: 18px;
        margin-top: 4px;
        font-size: 13px;
        line-height: 16px;
    }
}
