/* Klocki24 6.34.0 — Homepage Dynamic Modules
 * Local, data-gated surfaces only. No behavioural popularity claims and no
 * external frontend requests. */

.k24-home-dynamic,
.k24-home-local-watch {
    margin: 30px 0 34px;
    padding: 26px;
    border: 1px solid #dfe5ed;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 9px 26px rgba(15,33,60,.035);
}
.k24-home-dynamic__head,
.k24-home-local-watch__head {
    display: flex;
    gap: 22px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
}
.k24-home-dynamic__head h2,
.k24-home-local-watch__head h2 {
    margin: 0;
    color: #0b1d38;
    font-size: clamp(24px,2.55vw,36px);
    line-height: 1.05;
    letter-spacing: -.035em;
}
.k24-home-dynamic__head p:not(.k24-home-kicker),
.k24-home-local-watch__head p:not(.k24-home-kicker) {
    max-width: 800px;
    margin: 8px 0 0;
    color: #657186;
    font-size: 12px;
    line-height: 1.5;
}
.k24-home-dynamic__head > a,
.k24-home-local-watch__head > a {
    flex: none;
    color: #253752;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}
.k24-home-dynamic__head > a:hover,
.k24-home-local-watch__head > a:hover { text-decoration: underline; }

.k24-home-dynamic__grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 13px;
}
.k24-home-dynamic-panel {
    min-width: 0;
    padding: 16px;
    border: 1px solid #e1e6ed;
    border-radius: 17px;
    background: #fbfcfe;
}
.k24-home-dynamic-panel > header {
    min-height: 102px;
    margin-bottom: 11px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e7ebf0;
}
.k24-home-dynamic-panel > header small {
    display: block;
    margin-bottom: 5px;
    color: #8a6e00;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.k24-home-dynamic-panel > header h3 {
    margin: 0;
    color: #0d203c;
    font-size: 18px;
    line-height: 1.12;
    letter-spacing: -.025em;
}
.k24-home-dynamic-panel > header p {
    margin: 7px 0 0;
    color: #6a7688;
    font-size: 10.5px;
    line-height: 1.42;
}
.k24-home-dynamic-panel__items { display: grid; gap: 8px; }

.k24-home-dynamic-item,
.k24-home-watch-mini {
    display: grid;
    grid-template-columns: 58px minmax(0,1fr) 24px;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 8px;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    background: #fff;
    color: #0c203c;
    text-decoration: none;
    transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.k24-home-dynamic-item:hover,
.k24-home-watch-mini:hover {
    transform: translateY(-1px);
    border-color: #cfd7e2;
    box-shadow: 0 7px 16px rgba(15,33,60,.055);
}
.k24-home-dynamic-item__media,
.k24-home-watch-mini__media {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f7fa;
}
.k24-home-dynamic-item__media img,
.k24-home-watch-mini__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.k24-home-dynamic-item__placeholder,
.k24-home-watch-mini__media > span {
    color: #8e99aa;
    font-size: 10px;
    font-weight: 950;
}
.k24-home-dynamic-item__body,
.k24-home-watch-mini__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.k24-home-dynamic-item__body small,
.k24-home-watch-mini__body small {
    color: #738096;
    font-size: 8.5px;
    font-weight: 850;
}
.k24-home-dynamic-item__body strong,
.k24-home-watch-mini__body strong {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 2px;
    color: #0c203c;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.k24-home-dynamic-item__metric {
    margin-top: 4px;
    color: #44536a;
    font-size: 9px;
    font-weight: 850;
}
.k24-home-dynamic-item__body em,
.k24-home-watch-mini__body em {
    margin-top: 2px;
    color: #657186;
    font-size: 8.5px;
    font-style: normal;
    font-weight: 700;
}
.k24-home-dynamic-item > b,
.k24-home-watch-mini > b {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 8px;
    background: #f3f5f8;
    color: #4c596d;
    font-size: 11px;
}

.k24-home-local-watch {
    background: linear-gradient(145deg,#fffdf2,#fff 62%);
    border-color: #eadb91;
}
.k24-home-local-watch[hidden] { display: none !important; }
.k24-home-local-watch__items {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 10px;
}
.k24-home-watch-mini {
    grid-template-columns: 64px minmax(0,1fr) 24px;
    min-height: 82px;
}
.k24-home-watch-mini__media { width: 64px; height: 64px; }

@media (max-width: 1120px) {
    .k24-home-dynamic__grid { grid-template-columns: 1fr; }
    .k24-home-dynamic-panel > header { min-height: 0; }
    .k24-home-dynamic-panel__items { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .k24-home-local-watch__items { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
    .k24-home-dynamic,
    .k24-home-local-watch { padding: 19px; border-radius: 18px; }
    .k24-home-dynamic__head,
    .k24-home-local-watch__head { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 560px) {
    .k24-home-dynamic,
    .k24-home-local-watch { padding: 14px; }
    .k24-home-dynamic-panel { padding: 12px; }
    .k24-home-dynamic-panel__items,
    .k24-home-local-watch__items { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .k24-home-dynamic-item,
    .k24-home-watch-mini { transition: none; }
    .k24-home-dynamic-item:hover,
    .k24-home-watch-mini:hover { transform: none; }
}
