/* =====================================================================
   Mariya Chuyko — expert page
   Hero в стиле bento + крупная типографика с italic-акцентом (Cormorant Garamond),
   оранжевый акцент #FF6200 (фирменный цвет fittin.ru)
   ===================================================================== */

.mariya-page {
    --mariya-accent: #ff6200;
    --mariya-accent-soft: #fff0e8;
    --mariya-ink: #111111;
    --mariya-muted: #4a4a4a;
    --mariya-line: #e6e6e6;
    --mariya-bg: #f5f5f5;
}

/* Глобальный фон страницы — селектор с ID+class,
   чтобы перебить body:has(main#expert-main){#fafafa} из komanda-expert-page.css */
html:has(main#expert-main.mariya-page),
body:has(main#expert-main.mariya-page) {
    background: #f5f5f5;
    /* Декоративный вращающийся куб в .mariya-feature выходит за правый край
       и провоцирует горизонтальный скролл (из-за этого «обрезается» фикс-хедер).
       overflow-x: clip убирает горизонтальный скролл, не ломая sticky/fixed. */
    overflow-x: clip;
}

.mariya-page {
    background: #f5f5f5;
}

/* ---------- HERO ---------- */
.mariya-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px 50px;
}

.mariya-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

@media (max-width: 700px) {
    .mariya-hero__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .mariya-feature__quote-card {
        height: 100% !important;
    }
}

/* Роль над именем — italic Cormorant Garamond, оранжевый */
.mariya-hero__role {
    margin: 0 0 12px;
    font-family: 'Cormorant Garamond', 'Georgia', serif !important;
    font-style: italic;
    font-weight: 700 !important;
    color: var(--mariya-accent);
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-transform: lowercase;
}

/* Амперсанд — Times New Roman italic */
.mariya-hero__role-amp {
    font-family: 'Times New Roman', Times, serif !important;
    font-style: italic;
    font-weight: 500 !important;
}

/* Имя — крупный жирный uppercase */
.mariya-hero__name {
    margin: 0 0 22px;
    font-family: 'Gilroy', sans-serif !important;
    font-weight: 700 !important;
    color: var(--mariya-ink);
    font-size: clamp(46px, 6.2vw, 82px);
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.mariya-hero__lead {
    margin: 0 0 28px;
    max-width: 540px;
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.55;
    color: var(--mariya-muted);
    font-weight: 500 !important;
}

.mariya-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Кнопки — пилюли */
.mariya-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 32px;
    border-radius: 999px;
    font-family: 'Gilroy', sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px;
    text-decoration: none;
}

.mariya-btn--primary {
    background: var(--mariya-accent);
    color: #fff;
}

.mariya-btn--ghost {
    background: #111;
    color: #fff;
}

/* ---------- HERO MEDIA: одна фотокарточка ---------- */
.mariya-hero__media {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    max-height: 560px;
    border-radius: 28px;
    overflow: hidden;
    background: #e8e8e8;
}

.mariya-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .mariya-hero__media {
        aspect-ratio: 4 / 3;
        max-height: 480px;
    }
}

@media (max-width: 560px) {
    .mariya-hero__media {
        aspect-ratio: 1 / 1;
        max-height: none;
    }
}

/* ---------- BENTO ROW: 2 карточки + чип ---------- */
.mariya-bento {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.mariya-bento__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 700px) {
    .mariya-bento__grid {
        grid-template-columns: 1fr;
    }
}

.mariya-bento__card {
    position: relative;
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    min-height: 220px;
    display: flex;
    gap: 16px;
    flex-direction: column;
}

.mariya-bento__card--dark {
    background: #111;
    border-color: #111;
    color: #fff;
}

.mariya-bento__chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    padding: 8px 14px 8px 16px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.06);
    color: var(--mariya-ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mariya-bento__card--dark .mariya-bento__chip {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.mariya-bento__chip-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--mariya-accent);
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.mariya-bento__title {
    margin: 18px 0 12px;
    font-family: 'Gilroy', sans-serif !important;
    font-weight: 600 !important;
    font-size: clamp(22px, 1.8vw, 28px);
    line-height: 1.15;
    color: inherit;
}

.mariya-bento__title-italic {
    font-family: 'Cormorant Garamond', 'Georgia', serif !important;
    font-style: italic;
    font-weight: 700 !important;
    color: var(--mariya-accent);
}

.mariya-bento__text {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--mariya-muted);
    font-weight: 500 !important;
}

.mariya-bento__card--dark .mariya-bento__text {
    color: rgba(255, 255, 255, 0.78);
}

.mariya-bento__tags {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mariya-bento__tags li {
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.mariya-bento__tags li:first-child {
    background: var(--mariya-accent);
    border-color: var(--mariya-accent);
}

/* ---------- VIDEO + QUOTE (two columns) ---------- */
.mariya-feature {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 56px;
    overflow: visible;
}

.mariya-feature__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    overflow: visible;
}

@media (max-width: 700px) {
    .mariya-feature__grid {
        grid-template-columns: 1fr;
    }
}

.mariya-feature__media-card {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(420px, 42vw, 560px);
    padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 44px) 0;
    border-radius: 28px;
    background: #111111;
    overflow: visible;
}

.mariya-feature__video-plate {
    position: relative;
    z-index: 1;
    width: min(100%, 300px);
    aspect-ratio: 9 / 16;
    border-radius: 22px;
    box-sizing: border-box;
}

.mariya-feature__video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 14px;
    background: #111111;
}

.mariya-feature__video:fullscreen,
.mariya-feature__video:-webkit-full-screen,
.mariya-feature__video:-moz-full-screen {
    width: auto;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    object-fit: contain;
    background: #000000;
}

.mariya-feature__video::backdrop {
    background: #000000;
}

.mariya-feature__quote-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 70%;
    padding: clamp(30px, 4vw, 40px);
    border-radius: 28px;
    background: #f0f0f0;
    overflow: visible;
}

.mariya-feature__decor {
    position: absolute;
    display: block;
    width: auto;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.mariya-feature__decor--top {
    z-index: 20;
    top: clamp(-48px, -4vw, -28px);
    right: clamp(-40px, -3.5vw, -16px);
    width: clamp(88px, 11vw, 132px);
}

.mariya-feature__decor--bottom {
    z-index: 4;
    bottom: clamp(-76px, -9vw, -38px);
    right: clamp(-48px, -4vw, -16px);
    width: clamp(160px, 20vw, 270px);
    transform-origin: center center;
    animation: mariya-feature-cube-rotate 16s linear infinite;
}

@keyframes mariya-feature-cube-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mariya-feature__decor--bottom {
        animation: none;
    }
}

@media (max-width: 900px) {
    .mariya-feature__decor--top {
        top: -24px;
        right: -8px;
        width: 88px;
    }

    .mariya-feature__decor--bottom {
        bottom: -45px;
        right: -8px;
        width: 160px;
    }
}

.mariya-feature__quote-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: clamp(24px, 3vw, 36px);
}

.mariya-feature__quote-line {
    flex: 1;
    height: 1px;
    background: #111111;
}

.mariya-feature__quote-mark {
    flex-shrink: 0;
    width: 24px;
    height: 21px;
    color: #111111;
}

.mariya-feature__quote-text {
    margin: 0;
    font-family: 'Gilroy', sans-serif !important;
    font-weight: 400 !important;
    font-size: clamp(18px, 1.6vw, 20px);
    line-height: 1.55;
    color: var(--mariya-ink);
}

.mariya-feature__quote-text strong {
    font-weight: 700 !important;
    color: var(--mariya-accent);
}

.mariya-feature__quote-cite {
    display: block;
    margin-top: clamp(24px, 3vw, 32px);
    font-style: normal;
    font-family: 'Gilroy', sans-serif !important;
    font-size: clamp(16px, 1.5vw, 18px);
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    color: var(--mariya-muted);
}

/* ---------- QUOTE (legacy single card — kept for reuse) ---------- */
.mariya-quote {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 16px;
}

.mariya-quote__card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--mariya-line);
    border-radius: 28px;
    padding: clamp(28px, 4vw, 56px);
    display: grid;
    grid-template-columns: minmax(80px, auto) 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 700px) {
    .mariya-quote__card {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.mariya-quote__icon {
    width: 64px;
    height: 56px;
    flex-shrink: 0;
}

.mariya-quote__text {
    margin: 0;
    font-family: 'Cormorant Garamond', 'Georgia', serif !important;
    font-style: italic;
    font-weight: 700 !important;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.4;
    color: var(--mariya-ink);
}

.mariya-quote__text strong {
    font-family: 'Gilroy', sans-serif !important;
    font-style: normal;
    font-weight: 700 !important;
    color: var(--mariya-accent);
}

.mariya-quote__cite {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    font-style: normal;
    font-size: 14px;
    font-weight: 600 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mariya-muted);
}

.mariya-quote__cite::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--mariya-accent);
}

/* ---------- Articles section: подкорректировать под общий фон ---------- */
.mariya-page .expert-articles {
    padding-top: 32px;
}

.mariya-page .expert-articles__title {
    color: var(--mariya-ink);
}

.mariya-page .expert-articles-card {
    background: #ffffff;
    border-color: var(--mariya-line);
}

/* Убираем hover-эффекты у карточек статей */
.mariya-page .expert-articles-card,
.mariya-page .expert-articles-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--mariya-line);
}

.mariya-page .expert-articles-card .expert-articles-card__image,
.mariya-page .expert-articles-card:hover .expert-articles-card__image {
    transform: none;
}

.mariya-page .expert-articles__more-btn {
    color: var(--mariya-accent);
    border-color: var(--mariya-accent);
}

.mariya-page .expert-articles__more-btn:hover {
    background: transparent;
}
