body {
    margin: 0;
    background: #f6f8fb;
    font-family: 'Inter', Arial, sans-serif;
    color: #192955;
}

/* ---- Layout ---- */
.esh-main {
    display: flex;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0;
    min-height: 89vh;
}
.esh-content {
    flex: 1 1 auto;
    min-width: 0;
}

.esh-content h1 {
    color: #1840c0;
    font-size: 2.3em;
    margin-top: 0;
    margin-bottom: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.07em;
}

/* ---- Entity tiles (filtrování) ---- */
.esh-entity-tiles-row-under {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 12px;
    margin-bottom: 28px;
    margin-top: 7px;
    justify-content: flex-start;
}
.esh-entity-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f7faff;
    border-radius: 13px;
    min-width: 108px;
    min-height: 82px;
    padding: 9px 14px 7px 14px;
    text-decoration: none;
    color: #1c2db7;
    font-weight: 600;
    font-size: 1.09em;
    border: 2.3px solid transparent;
    box-shadow: 0 1px 9px #e0ebff10;
    transition: background .14s, border .14s;
}
.esh-entity-tile.active,
.esh-entity-tile:hover {
    background: #e9f2ff;
    border: 2.3px solid #2c64e5;
    color: #1756e0;
}
.esh-entity-tile img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    margin-bottom: 5px;
}

/* ---- Moduly grid ---- */
.esh-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 71px 10px;
    margin-top: 18px;
    align-items: stretch;
    min-height: 200px;
}
.esh-module-card,
.esh-module-card-wrap {
    background: #fff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    padding: 32px 24px 28px 24px;
    position: relative;
    min-width: 0;
    height: 100%;
    align-items: center;
    justify-content: flex-start;
    transition: box-shadow .19s, transform .16s;
}
.esh-module-card:hover,
.esh-module-card-wrap:hover {
    transform: translateY(-3px) scale(1.021);
}
.esh-module-card-empty {
    background: none;
    box-shadow: none;
    pointer-events: none;
}
.esh-module-img {
    margin: 0 auto 19px auto;
    width: 80%;
    height: auto;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 2px 8px #e2ebfd34;
    background: #f2f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.esh-module-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0 auto;
}
.esh-module-title {
    font-size: 1.14em;
    font-weight: 800;
    color: #1937b7;
    margin-bottom: 7px;
    line-height: 1.22em;
    text-align: center;
    width: 100%;
    letter-spacing: -0.01em;
}
.esh-module-short {
    font-size: 1.01em;
    color: #1837b7bb;
    margin-bottom: 18px;
    line-height: 1.39em;
    flex: 1 1 auto;
    text-align: center;
    width: 100%;
}
.esh-module-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: auto;
    gap: 8px;
}
.esh-module-price {
    font-size: 1.17em;
    color: #ea2367;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 1150px) {
    .esh-main { max-width: 98vw; }
    .esh-modules-grid { grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 900px) {
    .esh-main { flex-direction: column; max-width: 99vw; padding: 10px 0 0 0; }
    .esh-content { width: 100%; min-width: 0; }
    .esh-modules-grid { grid-template-columns: 1fr;}
}

