.mk-home-search-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(340px, 1fr);
    align-items: stretch;
    gap: 20px;
    margin: 20px 0;
}
.mk-home-search-layout__carousel { display: flex; align-items: center; min-width: 0; overflow: hidden; border-radius: 20px; }
.mk-home-search-layout__carousel #focusslide { width: 100%; height: auto; max-height: none; margin: 0; }
.mk-home-search-layout__carousel .swiper-slide a { display: block; }
.mk-home-search-layout__carousel .swiper-slide img { display: block; width: 100%; height: auto; }
.mk-home-smart-search {
    min-width: 0;
    padding: 20px;
    border: 1px solid #f0e0da;
    border-radius: 20px;
    background: radial-gradient(ellipse at top right, #fff0e7 0, transparent 65%), #fffaf7;
    color: #342c29;
}
.mk-home-smart-search__eyebrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.mk-home-smart-search__badge { padding: 3px 8px; border: 1px solid #eed8cb; border-radius: 20px; color: #9b735e; font-size: 11px; line-height: 1.5; white-space: nowrap; }
.mk-home-smart-search h2 { margin: 0; color: #342c29; font-size: 20px; line-height: 1.45; font-weight: 700; }
.mk-home-smart-search > p { margin: 0; color: #887870; font-size: 12px; line-height: 1.8; }
.mk-home-smart-search__form { margin-top: 12px; }
.mk-home-smart-search__input-wrap { overflow: hidden; padding: 12px; border: 1px solid #e8d7ce; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.mk-home-smart-search__input-wrap:focus-within { border-color: #ec695a; box-shadow: 0 0 0 3px #ec695a16; }
.mk-home-smart-search textarea { display: block; box-sizing: border-box; width: 100%; min-height: 44px; max-height: 160px; padding: 0; border: 0; border-radius: 0; outline: 0; box-shadow: none; resize: vertical; background: transparent; color: #3d3430; font: inherit; font-size: 13px; line-height: 1.8; }
.mk-home-smart-search textarea::placeholder { color: #a99c94; opacity: 1; }
.mk-home-smart-search__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.mk-home-smart-search__actions > span { color: #aa9b92; font-size: 11px; }
.mk-home-smart-search__actions button { display: inline-flex; align-items: center; gap: 10px; padding: 9px 13px; border: 0; border-radius: 8px; background: #ec695a; color: #fff; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.mk-home-smart-search__actions button:hover { background: #da594b; }
.mk-home-smart-search__actions button:disabled { opacity: .65; cursor: wait; }
.mk-home-smart-search button:focus-visible { outline: 2px solid #b34736; outline-offset: 3px; }
.mk-home-smart-search__examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 11px; color: #9a877a; }
.mk-home-smart-search__examples button { padding: 4px 7px; border: 1px solid #eadfd8; border-radius: 6px; background: #ffffffb3; color: #8c6d5c; font: inherit; line-height: 1.4; cursor: pointer; }
.mk-home-smart-search__examples button:hover { border-color: #d4a48e; background: #fff; color: #9c4c36; }
.mk-home-smart-search__status { margin: 12px 0 0; color: #8c6d5c; font-size: 12px; line-height: 1.7; }
.mk-home-smart-search__status[hidden] { display: none; }
.mk-home-smart-search[hidden], .mk-smart-chat-form[hidden], .mk-smart-search-end[hidden], .mk-smart-chat-status[hidden] { display: none; }
.mk-home-smart-search__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mk-home-smart-results { grid-column: 1 / -1; padding: 24px; border: 1px solid #eee4de; border-radius: 20px; background: #fff; }
.mk-home-smart-results[hidden] { display: none; }
.mk-home-smart-results__loading { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 150px; padding: 28px 16px; border-radius: 12px; background: #fffaf7; color: #8c6d5c; }
.mk-home-smart-results__loading[hidden] { display: none; }
.mk-home-smart-results__loading strong { color: #342c29; font-size: 16px; }
.mk-home-smart-results__loading p { margin: 6px 0 0; font-size: 13px; line-height: 1.8; }
.mk-smart-search-spinner { flex: 0 0 auto; width: 30px; height: 30px; border: 3px solid #f3ddd5; border-top-color: #ec695a; border-radius: 50%; animation: mk-smart-search-spin .9s linear infinite; }
.mk-home-smart-search__form[aria-busy="true"] [type="submit"]::before { content: ''; width: 12px; height: 12px; border: 2px solid #ffffff60; border-top-color: #fff; border-radius: 50%; animation: mk-smart-search-spin .9s linear infinite; }
@keyframes mk-smart-search-spin { to { transform: rotate(360deg); } }
.mk-home-smart-results__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mk-home-smart-results__header h2 { margin: 0; font-size: 20px; line-height: 1.5; }
.mk-home-smart-results__count { color: #9b735e; font-size: 13px; }
.mk-smart-search-conversation { display: grid; gap: 14px; margin-top: 18px; }
.mk-smart-search-conversation:empty { display: none; }
.mk-smart-search-turn { max-width: 90%; padding: 16px 20px; border-radius: 14px; background: #faf7f4; color: #51443c; overflow-wrap: anywhere; }
.mk-smart-search-turn--user { justify-self: end; background: #fff0e9; }
.mk-smart-search-turn strong { color: #8c6d5c; font-size: 12px; }
.mk-smart-search-turn p { margin: 7px 0 0; white-space: pre-wrap; font-size: 14px; line-height: 1.9; }
.mk-smart-search-turn__sources { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-size: 12px; line-height: 1.8; }
.mk-smart-search-turn__sources a { color: #b34736; text-decoration: underline; }
.mk-smart-search-turn--with-results { box-sizing: border-box; width: 100%; max-width: 100%; }
.mk-smart-search-turn__results { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eaddd4; }
.mk-smart-search-turn__results h3 { margin: 0 0 12px; font-size: 15px; }
.mk-smart-search-turn__summary { color: #887870; font-size: 13px; }
.mk-smart-follow-ups { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #eaddd4; }
.mk-smart-follow-ups__label { flex-basis: 100%; color: #887870; font-size: 12px; }
.mk-smart-follow-up { max-width: 100%; padding: 8px 12px; border: 1px solid #e8d7ce; border-radius: 10px; background: #fff; color: #8c513a; font: inherit; font-size: 13px; line-height: 1.6; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.mk-smart-follow-up:hover { border-color: #ec695a; background: #fff0e9; }
.mk-smart-follow-up:focus-visible { outline: 2px solid #b34736; outline-offset: 3px; }
.mk-smart-follow-up:disabled { opacity: .5; cursor: wait; }
.mk-smart-search-end { flex: 0 0 auto; padding: 7px 12px; border: 1px solid #e8d7ce; border-radius: 8px; background: #fff; color: #8c6d5c; font: inherit; font-size: 12px; cursor: pointer; }
.mk-smart-search-end:hover { border-color: #ec695a; color: #b34736; }
.mk-smart-chat-form { margin-top: 24px; padding: 16px; border: 1px solid #e8d7ce; border-radius: 12px; background: #fffaf7; }
.mk-smart-chat-form:focus-within { border-color: #ec695a; box-shadow: 0 0 0 3px #ec695a16; }
.mk-smart-chat-form textarea { display: block; box-sizing: border-box; width: 100%; min-height: 70px; max-height: 200px; padding: 0; border: 0; background: transparent; outline: 0; box-shadow: none; resize: vertical; color: #3d3430; font: inherit; font-size: 14px; line-height: 1.8; }
.mk-smart-chat-status { margin: 10px 0 0; color: #8c6d5c; font-size: 12px; line-height: 1.7; }
.mk-smart-chat-form[aria-busy="true"] [type="submit"]::before { content: ''; width: 12px; height: 12px; border: 2px solid #ffffff60; border-top-color: #fff; border-radius: 50%; animation: mk-smart-search-spin .9s linear infinite; }
.mk-home-smart-results__summary { margin: 8px 0 18px; color: #887870; font-size: 13px; line-height: 1.8; }
.mk-home-smart-results__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mk-smart-font-card { min-width: 0; overflow: hidden; padding-bottom: 12px; border: 1px solid #eee7e1; border-radius: 12px; }
.mk-smart-font-card a { display: block; color: #342c29; }
.mk-smart-font-card a:focus-visible { outline: 2px solid #ec695a; outline-offset: -2px; }
.mk-smart-font-card__preview { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; overflow: hidden; background: #faf7f4; color: #9b735e; font-size: 14px; }
.mk-smart-font-card__preview img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.mk-smart-font-card h3, .mk-smart-font-card h4 { margin: 12px 12px 6px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.mk-smart-font-card .mk-smart-font-card__reason { margin: 0 12px; color: #8c7a6e; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.mk-smart-search-page { display: grid; gap: 24px; width: calc(100% - 32px); max-width: 1200px; margin: 28px auto 48px; }
.mk-smart-search-page__breadcrumb { display: flex; gap: 10px; color: #9a877a; font-size: 12px; line-height: 1.8; }
.mk-smart-search-page__breadcrumb a { color: #887870; }
.mk-smart-search-page .mk-home-smart-search { padding: 28px 32px; }
.mk-smart-search-page .mk-home-smart-search h2 { font-size: 26px; }
.mk-smart-search-page .mk-home-smart-search > p { font-size: 14px; }
.mk-smart-search-page .mk-home-smart-search textarea { min-height: 62px; font-size: 15px; }
.mk-home-smart-results__empty { margin: 24px 0; padding: 28px 16px; border: 1px dashed #e8d7ce; border-radius: 12px; color: #9a877a; text-align: center; font-size: 14px; line-height: 1.8; }
.mk-smart-search-discover { padding: 24px; border: 1px solid #eee4de; border-radius: 20px; background: #fff; }
.mk-smart-search-discover > h2 { margin: 0 0 16px; font-size: 20px; line-height: 1.5; }
.mk-smart-search-discover__ideas { display: flex; flex-wrap: wrap; gap: 10px; }
.mk-smart-search-discover__ideas a { padding: 11px 16px; border: 1px solid #eeddd2; border-radius: 10px; background: #fffaf7; color: #94664e; font-size: 13px; line-height: 1.6; }
.mk-smart-search-discover__ideas a:hover { border-color: #ec695a; color: #b34736; }
.mk-smart-search-discover__ideas a:focus-visible { outline: 2px solid #ec695a; outline-offset: 3px; }
.mk-smart-search-recommendations { margin-top: 28px; padding-top: 24px; border-top: 1px solid #f0e8e2; }
.mk-smart-search-recommendations > h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.5; }
.mk-smart-search-recommendations > p { margin: 0 0 18px; color: #887870; font-size: 13px; line-height: 1.8; }
.mk-smart-font-card[hidden], .mk-smart-search-recommendations[hidden], .mk-home-smart-results__empty[hidden] { display: none; }
@media (max-width: 1050px) {
    .mk-home-search-layout { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 16px; }
    .mk-home-smart-search { padding: 20px; }
}
@media (max-width: 800px) {
    .mk-home-search-layout { grid-template-columns: minmax(0, 1fr); }
    .mk-home-search-layout__carousel #focusslide { height: auto; }
    .mk-home-search-layout__carousel .swiper-slide img { height: auto; }
    .mk-home-smart-search { padding: 22px; }
    .mk-home-smart-search textarea { min-height: 62px; }
    .mk-home-smart-results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .mk-home-smart-results__header { flex-wrap: wrap; }
    .mk-smart-search-turn { max-width: 100%; padding: 14px; }
    .mk-home-smart-results { padding: 18px; }
    .mk-home-smart-results__grid { grid-template-columns: minmax(0, 1fr); }
    .mk-smart-search-page { gap: 18px; margin-top: 20px; }
    .mk-smart-search-page .mk-home-smart-search { padding: 22px; }
    .mk-smart-search-page .mk-home-smart-search h2 { font-size: 21px; }
    .mk-smart-search-discover { padding: 18px; }
    .mk-smart-search-discover__ideas { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .mk-home-smart-search__input-wrap { transition: none; }
    .mk-smart-search-spinner, .mk-home-smart-search__form[aria-busy="true"] [type="submit"]::before, .mk-smart-chat-form[aria-busy="true"] [type="submit"]::before { animation: none; }
}
