

/* Start:/local/components/mt/ideas/templates/.default/style.css?17925793138085*/
/* Компонент mt:ideas — блок «Идеи» (главная, /ideas/) и страница идеи. Палитра: серый #F4F4F4, красный #B31E28. */

.mt-ideas,
.mt-idea {
    --mti-gray: #F4F4F4;
    --mti-gray-hover: #E9E9E9;
    --mti-red: #B31E28;
    --mti-text: #2c2c2d;
    --mti-muted: #7b7b7d;
    color: var(--mti-text);
    box-sizing: border-box;
}
.mt-ideas *,
.mt-idea * {
    box-sizing: border-box;
}

/* ---------- Главная и /ideas/ ---------- */
.mt-ideas {
    margin-top: 50px;
    margin-bottom: 50px;
}
.mt-ideas--index {
    margin-top: 10px;
    margin-bottom: 60px;
}
.mt-ideas__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    margin: 0 0 22px;
}
.mt-ideas__title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 23px; /* как заголовки «Услуги», «Блог» на главной */
    font-weight: 700;
    line-height: 1.3;
    color: var(--mti-text);
    text-decoration: none;
}
a.mt-ideas__title:hover,
a.mt-ideas__title:focus-visible {
    color: var(--mti-red);
    text-decoration: none;
}
.mt-ideas__chevron {
    flex: none;
    height: 18px;
    width: auto;
    transition: transform .2s ease;
}
a.mt-ideas__title:hover .mt-ideas__chevron {
    transform: translateX(3px);
}
.mt-ideas__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.mt-ideas__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 16px;
    border-radius: 16px;
    background: var(--mti-gray);
    color: var(--mti-text);
    font-size: 13px; /* клиент 20.10: ещё мельче и компактнее */
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.mt-ideas__pill:hover,
.mt-ideas__pill:focus-visible {
    background: var(--mti-gray-hover);
    color: var(--mti-text);
    text-decoration: none;
}
.mt-ideas__pill.is-active,
.mt-ideas__pill[aria-pressed="true"] {
    background: var(--mti-red);
    color: #fff;
}

/* Сетка как у плиток категорий: ряд с отрицательным полем -5px и карточки с отступом 5px (зазор 10px). */
.mt-ideas__grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}
.mt-ideas-card {
    width: 25%;
    padding: 0 5px 26px;
}
.mt-ideas-card[hidden] {
    display: none;
}
.mt-ideas-card.is-in {
    animation: mt-ideas-fade .28s ease both;
}
@keyframes mt-ideas-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
.mt-ideas-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0 0 12px;
}
.mt-ideas-card__label {
    font-size: 14px;
    line-height: 1.3;
    color: var(--mti-text);
}
.mt-ideas-card__photo {
    display: block;
    overflow: hidden;
    background: var(--mti-gray);
    aspect-ratio: 7 / 10;
}
.mt-ideas-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.mt-ideas-card__photo:hover img,
.mt-ideas-card__photo:focus-visible img {
    transform: scale(1.03);
}

/* Аватар: круг. Монограмма «МТ» — вместо логотипа стилиста, пока он не передан параметром STYLIST_LOGO. */
.mt-ideas-avatar {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--mti-gray);
    color: var(--mti-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}
.mt-ideas-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mt-ideas-avatar--logo {
    background: #111;
    color: #fff;
}
.mt-ideas-avatar--logo img {
    object-fit: contain;
    padding: 18%;
}
.mt-ideas-avatar__mono {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.02em;
}
.mt-ideas-avatar--lg {
    width: 56px;
    height: 56px;
}
.mt-ideas-avatar--lg .mt-ideas-avatar__mono {
    font-size: 19px;
}

.mt-ideas__empty {
    padding: 40px 0;
    color: var(--mti-muted);
}

/* Постраничность */
.mt-ideas__pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.mt-ideas__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 20px;
    background: var(--mti-gray);
    color: var(--mti-text);
    font-size: 14px;
    text-decoration: none;
}
a.mt-ideas__page:hover {
    background: var(--mti-gray-hover);
    text-decoration: none;
    color: var(--mti-text);
}
.mt-ideas__page.is-current {
    background: var(--mti-red);
    color: #fff;
}

/* точки перестроения как у плиток категорий: 4 / 3 (≤1100) / 2 (≤850) / 1 (≤600) */
@media (max-width: 1100px) {
    .mt-ideas-card { width: 33.3333%; }
}
@media (max-width: 850px) {
    .mt-ideas-card { width: 50%; }
}
@media (max-width: 600px) {
    .mt-ideas { margin: 36px 0; }
    .mt-ideas-card { width: 100%; }
    .mt-ideas__pill { min-height: 30px; padding: 0 14px; font-size: 12px; }
}

/* ---------- Страница идеи ---------- */
.mt-idea {
    margin: 10px 0 70px;
}
/* .intec-content режет по overflow:hidden — это ломает sticky у фото на планшете */
.mt-idea.intec-content {
    overflow: visible;
}
.mt-idea__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 24px;
}
.mt-idea__headtext {
    min-width: 0;
}
.mt-idea__label {
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--mti-text);
}
.mt-idea__author {
    margin-left: 8px;
    font-size: 14px;
    font-weight: 400;
    color: var(--mti-muted);
}
.mt-idea__subtitle {
    margin-top: 3px;
    font-size: 14px;
    line-height: 1.3;
    color: var(--mti-muted);
}
.mt-idea__body {
    display: flex;
    align-items: stretch;
    gap: 40px;
}
.mt-idea__photo {
    flex: 0 0 35%;
    max-width: 35%;
}
.mt-idea__photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 7 / 10;
    object-fit: cover;
    background: var(--mti-gray);
}
.mt-idea__products {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 1100px) {
    .mt-idea__body { gap: 28px; align-items: flex-start; }
    .mt-idea__photo { flex-basis: 40%; max-width: 40%; position: sticky; top: 90px; }
}
@media (max-width: 700px) {
    .mt-idea__body { flex-direction: column; gap: 24px; }
    .mt-idea__photo { flex: none; max-width: 520px; width: 100%; position: static; }
    .mt-idea__products { width: 100%; }
    .mt-idea__label { font-size: 19px; }
    .mt-idea__author { display: block; margin: 2px 0 0; }
}
@media (max-width: 600px) {
    .mt-idea { margin-bottom: 50px; }
    .mt-idea__photo { max-width: none; }
}

/* Тема даёт ссылкам подчёркивание в состояниях :hover/:focus/:active/:visited (специфичность выше одиночного класса):
   после клика кнопка-фильтр оставалась в фокусе и подчёркивалась. Блок «Идеи» — без подчёркивания во всех состояниях;
   рамку фокуса от мыши не показываем, для клавиатуры (:focus-visible) она остаётся. */
.mt-ideas a,
.mt-ideas a:visited,
.mt-ideas a:hover,
.mt-ideas a:focus,
.mt-ideas a:active {
    text-decoration: none;
}
.mt-ideas a:focus:not(:focus-visible) {
    outline: none;
}
.mt-ideas .mt-ideas__pill:focus-visible,
.mt-ideas a.mt-ideas__title:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

/* End */
/* /local/components/mt/ideas/templates/.default/style.css?17925793138085 */
